<property name="testData" ref="ref1" />\r
</bean>\r
\r
+ <!-- Attachments -->\r
+ <bean parent="task.echo">\r
+ <property name="message" value="DATA" />\r
+ <property name="writeTo" ref="basic.writeTo" />\r
+ </bean>\r
+\r
<bean parent="task.uploadAttachments">\r
<property name="attachmentUploader" ref="attachmentUploader" />\r
- <property name="attachments">\r
- <map>\r
- <entry>\r
- <key>\r
- <bean class="org.argeo.slc.core.attachment.SimpleAttachment">\r
- <property name="name" value="myAttachment" />\r
- <property name="contentType" value="text/xml" />\r
- <property name="uuid" value="1" />\r
- </bean>\r
- </key>\r
- <bean class="org.springframework.core.io.FileSystemResource">\r
- <constructor-arg value="/home/mbaudier/dev/work/tests/test.xml" />\r
- </bean>\r
- </entry>\r
- </map>\r
+ <property name="attachment">\r
+ <bean parent="taskArg.attachment">\r
+ <property name="name" value="myAttachment.txt" />\r
+ </bean>\r
</property>\r
+ <property name="resource" ref="basic.writeTo" />\r
<property name="attachTo">\r
<list>\r
<ref bean="basic.testResult" />\r
<bean id="basic.testResult" parent="slcDefault.test.basicTreeTestResult"\r
scope="execution">\r
<property name="listeners" ref="resultListeners" />\r
+ <property name="attributes">\r
+ <map>\r
+ <entry key="testedComponentId" value="@{testedComponentId}" />\r
+ </map>\r
+ </property>\r
<aop:scoped-proxy />\r
</bean>\r
\r
<property name="testResult" ref="basic.testResult" />\r
</bean>\r
\r
+ <bean id="basic.writeTo" factory-bean="basic.resourcesManager"\r
+ factory-method="getWritableResource" scope="execution">\r
+ <constructor-arg value="subdir/writeTo" />\r
+ <aop:scoped-proxy />\r
+ </bean>\r
+\r
+ <bean id="basic.resourcesManager" parent="slcTemplate.fileResources">\r
+ <property name="executionContext" ref="executionContext" />\r
+ </bean>\r
+\r
+\r
\r
</beans>
\ No newline at end of file