]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - demo/modules/org.argeo.slc.demo.basic/META-INF/spring/systemCall.xml
Clarify overall project structure.
[gpl/argeo-slc.git] / demo / modules / org.argeo.slc.demo.basic / META-INF / spring / systemCall.xml
diff --git a/demo/modules/org.argeo.slc.demo.basic/META-INF/spring/systemCall.xml b/demo/modules/org.argeo.slc.demo.basic/META-INF/spring/systemCall.xml
deleted file mode 100644 (file)
index 5b88539..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\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" xmlns:flow="http://www.argeo.org/schema/slc-flow"\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/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd\r
-       http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">\r
-\r
-       <!-- Basic echo, should work on all OSs -->\r
-       <flow:flow name="os/systemCall">\r
-               <bean p:cmd="echo Hello World!" class="org.argeo.slc.core.execution.tasks.SystemCall" />\r
-       </flow:flow>\r
-\r
-       <!-- Must disable requiretty in sudoers file -->\r
-       <flow:flow name="os/sudo">\r
-               <bean p:cmd="sudo id" class="org.argeo.slc.core.execution.tasks.SystemCall">\r
-                       <property name="environmentVariables">\r
-                               <map>\r
-                                       <entry key="SUDO_ASKPASS" value="/usr/libexec/openssh/gnome-ssh-askpass" />\r
-                               </map>\r
-                       </property>\r
-               </bean>\r
-       </flow:flow>\r
-\r
-       <!-- SSH -->\r
-       <flow:flow name="os/ssh">\r
-               <bean p:cmd="ls /etc" class="org.argeo.slc.core.execution.tasks.SystemCall">\r
-                       <property name="executor" ref="sshExecutor" />\r
-               </bean>\r
-       </flow:flow>\r
-\r
-       <bean name="sshExecutor" class="org.argeo.slc.jsch.JschExecutor">\r
-               <property name="sshTarget">\r
-                       <bean p:host="localhost" p:port="22" p:user="${user.name}"\r
-                               p:localPrivateKey="${user.home}/.ssh/id_rsa" class="org.argeo.slc.jsch.SshTarget">\r
-                               <property name="userInfo">\r
-                                       <bean class="org.argeo.slc.jsch.SwingUserInfo" />\r
-                               </property>\r
-                       </bean>\r
-               </property>\r
-       </bean>\r
-\r
-\r
-\r
-</beans>
\ No newline at end of file