\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" />\r
+ <property name="contentType" value="text/xml" />\r
+ <property name="uuid" value="1" />\r
+ </bean>\r
</property>\r
+ <property name="resource" value="osgibundle:/conf/main.xml" />\r
<property name="attachTo">\r
<list>\r
<ref bean="basic.testResult" />\r