]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - cms/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/executionResources.xml
Clarify SLC project structure.
[gpl/argeo-slc.git] / cms / org.argeo.slc.spring / ext / test / org / argeo / slc / core / execution / executionResources.xml
diff --git a/cms/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/executionResources.xml b/cms/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/executionResources.xml
new file mode 100644 (file)
index 0000000..654f8b4
--- /dev/null
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+    Copyright (C) 2007-2012 Argeo GmbH\r
+\r
+    Licensed under the Apache License, Version 2.0 (the "License");\r
+    you may not use this file except in compliance with the License.\r
+    You may obtain a copy of the License at\r
+\r
+            http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+    Unless required by applicable law or agreed to in writing, software\r
+    distributed under the License is distributed on an "AS IS" BASIS,\r
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+    See the License for the specific language governing permissions and\r
+    limitations under the License.\r
+\r
+-->\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
+       xmlns:aop="http://www.springframework.org/schema/aop"\r
+       xsi:schemaLocation="\r
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
+       http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd\r
+       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">\r
+\r
+       <import resource="imports.xml" />\r
+\r
+       <bean id="executionResources.spec" parent="slcTemplate.simpleSpec">\r
+               <property name="attributes">\r
+                       <map>\r
+                               <entry key="var">\r
+                                       <bean parent="specAttr.primitive" p:isParameter="false"\r
+                                               p:type="integer" p:value="60" />\r
+                               </entry>\r
+                       </map>\r
+               </property>\r
+       </bean>\r
+\r
+       <bean id="executionResources.placeholderPass" parent="slcTemplate.simpleFlow">\r
+               <constructor-arg ref="executionResources.spec" />\r
+               <property name="executables">\r
+                       <list>\r
+                               <bean parent="task.echo">\r
+                                       <property name="message" value="DATA" />\r
+                                       <property name="writeTo">\r
+                                               <bean parent="slcTemplate.resourcesFactoryBean" scope="execution">\r
+                                                       <property name="executionResources" ref="executionResources" />\r
+                                                       <property name="relativePath" value="subdir/@{var}" />\r
+                                                       <aop:scoped-proxy />\r
+                                               </bean>\r
+                                       </property>\r
+                               </bean>\r
+                       </list>\r
+               </property>\r
+       </bean>\r
+\r
+       <bean id="executionResources.placeholderFail" parent="slcTemplate.simpleFlow">\r
+               <constructor-arg ref="executionResources.spec" />\r
+               <property name="executables">\r
+                       <list>\r
+                               <bean parent="task.echo">\r
+                                       <property name="message" value="DATA" />\r
+                                       <property name="writeTo">\r
+                                               <bean factory-bean="executionResources" factory-method="getWritableResource"\r
+                                                       scope="execution">\r
+                                                       <constructor-arg value="subdir/@{var}" />\r
+                                                       <aop:scoped-proxy />\r
+                                               </bean>\r
+                                       </property>\r
+                               </bean>\r
+                       </list>\r
+               </property>\r
+       </bean>\r
+\r
+       <bean id="executionResources.simple" parent="slcTemplate.simpleFlow">\r
+               <property name="executables">\r
+                       <list>\r
+                               <bean parent="task.echo">\r
+                                       <property name="message" value="DATA" />\r
+                                       <property name="writeTo">\r
+                                               <bean factory-bean="executionResources" factory-method="getWritableResource"\r
+                                                       scope="execution">\r
+                                                       <constructor-arg value="subdir/writeTo" />\r
+                                                       <aop:scoped-proxy />\r
+                                               </bean>\r
+                                       </property>\r
+                               </bean>\r
+                       </list>\r
+               </property>\r
+       </bean>\r
+\r
+       <bean id="executionResources" parent="slcTemplate.fileResources">\r
+               <property name="executionContext" ref="executionContext" />\r
+               <property name="withExecutionSubdirectory" value="false" />\r
+       </bean>\r
+\r
+</beans>
\ No newline at end of file