Running SSCL scripts from within Ant

Top  Previous  Next

Apache Ant is a Java based build tool that is used for automating software builds. SSCL may be used with the Ant build tool to automate file transfer tasks. The following instructions demonstrate how to use SSCL in Ant.

 

1. Add the following SSCL task definition tag at the top your Ant build file.

 

<taskdef name="sscl" classname="com.jscape.sscl.ShellAgentTask" classpath="C:\sshfactory\lib\sshfactory.jar"/>

 

The classpath attribute must point to the sshfactory.jar file distributed with SSH Factory.

 

2. Add the SSCL task to the appropriate location in your Ant build file.

 

<sscl scriptfile="c:\tmp\script.txt"/>

 

The scriptfile attribute should point to the script file to be run by SSCL.





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC