]> git.argeo.org Git - gpl/argeo-slc.git/blob - executionResources.xml
dc2fc88a8b742e2d8a184b340ca763ceb5f5b4c5
[gpl/argeo-slc.git] / executionResources.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19
20 <beans xmlns="http://www.springframework.org/schema/beans"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
22 xmlns:aop="http://www.springframework.org/schema/aop"
23 xsi:schemaLocation="
24 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
25 http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
26 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
27
28 <import resource="imports.xml" />
29
30 <bean id="executionResources.spec" parent="slcTemplate.simpleSpec">
31 <property name="attributes">
32 <map>
33 <entry key="var">
34 <bean parent="specAttr.primitive" p:isParameter="false"
35 p:type="integer" p:value="60" />
36 </entry>
37 </map>
38 </property>
39 </bean>
40
41 <bean id="executionResources.placeholderPass" parent="slcTemplate.simpleFlow">
42 <constructor-arg ref="executionResources.spec" />
43 <property name="executables">
44 <list>
45 <bean parent="task.echo">
46 <property name="message" value="DATA" />
47 <property name="writeTo">
48 <bean parent="slcTemplate.resourcesFactoryBean" scope="execution">
49 <property name="executionResources" ref="executionResources" />
50 <property name="relativePath" value="subdir/@{var}" />
51 <aop:scoped-proxy />
52 </bean>
53 </property>
54 </bean>
55 </list>
56 </property>
57 </bean>
58
59 <bean id="executionResources.placeholderFail" parent="slcTemplate.simpleFlow">
60 <constructor-arg ref="executionResources.spec" />
61 <property name="executables">
62 <list>
63 <bean parent="task.echo">
64 <property name="message" value="DATA" />
65 <property name="writeTo">
66 <bean factory-bean="executionResources" factory-method="getWritableResource"
67 scope="execution">
68 <constructor-arg value="subdir/@{var}" />
69 <aop:scoped-proxy />
70 </bean>
71 </property>
72 </bean>
73 </list>
74 </property>
75 </bean>
76
77 <bean id="executionResources.simple" parent="slcTemplate.simpleFlow">
78 <property name="executables">
79 <list>
80 <bean parent="task.echo">
81 <property name="message" value="DATA" />
82 <property name="writeTo">
83 <bean factory-bean="executionResources" factory-method="getWritableResource"
84 scope="execution">
85 <constructor-arg value="subdir/writeTo" />
86 <aop:scoped-proxy />
87 </bean>
88 </property>
89 </bean>
90 </list>
91 </property>
92 </bean>
93
94 <bean id="executionResources" parent="slcTemplate.fileResources">
95 <property name="executionContext" ref="executionContext" />
96 <property name="withExecutionSubdirectory" value="false" />
97 </bean>
98
99 </beans>