--- /dev/null
+<?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:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xmlns:aop="http://www.springframework.org/schema/aop"\r
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-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="systemCallSimple" parent="slcTemplate.simpleFlow">\r
+ <property name="executables">\r
+ <list>\r
+ <bean parent="task.echo">\r
+ <property name="message" value="os.name=${os.name}" />\r
+ </bean>\r
+ <bean parent="task.systemCall">\r
+ <property name="cmd" value="echo Hello World" />\r
+ </bean>\r
+ </list>\r
+ </property>\r
+ </bean>\r
+\r
+ <bean id="systemCallList" parent="slcTemplate.simpleFlow">\r
+ <property name="executables">\r
+ <list>\r
+ <bean parent="task.systemCall">\r
+ <property name="command">\r
+ <list>\r
+ <value>echo</value>\r
+ <value>Hello</value>\r
+ <value>World</value>\r
+ </list>\r
+ </property>\r
+ </bean>\r
+ </list>\r
+ </property>\r
+ </bean>\r
+\r
+ <bean id="systemCallOsSpecific" parent="slcTemplate.simpleFlow">\r
+ <!-- Direct call to dir under Windows isnot working -->\r
+ <property name="executables">\r
+ <list>\r
+ <bean parent="task.systemCall">\r
+ <property name="cmd" value="dir" />\r
+ <property name="execDir" value="../.." />\r
+ <property name="osCmds">\r
+ <map>\r
+ <entry key="Linux" value="ls" />\r
+ <entry key="Mac OS X" value="ls" />\r
+ </map>\r
+ </property>\r
+ </bean>\r
+ <bean parent="task.systemCall">\r
+ <property name="command">\r
+ <list>\r
+ <value>dir</value>\r
+ </list>\r
+ </property>\r
+ <property name="osCommands">\r
+ <map>\r
+ <entry key="Linux">\r
+ <list>\r
+ <value>ls</value>\r
+ </list>\r
+ </entry>\r
+ <entry key="Mac OS X">\r
+ <list>\r
+ <value>ls</value>\r
+ </list>\r
+ </entry>\r
+ </map>\r
+ </property>\r
+ </bean>\r
+ </list>\r
+ </property>\r
+ </bean>\r
+\r
+ <bean id="systemCallWithVar" parent="slcTemplate.simpleFlow">\r
+ <constructor-arg>\r
+ <bean parent="slcTemplate.simpleSpec">\r
+ <property name="attributes">\r
+ <map>\r
+ <entry key="var">\r
+ <bean parent="specAttr.primitive" p:value="660" />\r
+ </entry>\r
+ </map>\r
+ </property>\r
+ </bean>\r
+ </constructor-arg>\r
+ <property name="executables">\r
+ <list>\r
+ <bean parent="task.systemCall" scope="execution">\r
+ <property name="cmd" value="echo var=@{var}" />\r
+ <aop:scoped-proxy />\r
+ </bean>\r
+ </list>\r
+ </property>\r
+ </bean>\r
+\r
+\r
+</beans>
\ No newline at end of file