Use Ant to automate tasks
WAS provides a copy of the Apache Ant build tool and a set of Ant tasks.
Apache Ant uses XML files containing task interfaces that are read and executed by...
APP_ROOT/bin/ws_ant.sh...to...
- Install and uninstall applications
- Start and stop servers in a base configuration
- Run admin scripts or commands
- Run the deployment tool for EJB 1.x or 2.x modules
- Run the JSP file precompilation tool
The Apache Ant tasks reside in...
com.ibm.websphere.ant.tasksIBM WAS provides an Apache Struts JAR shared library file in...
install_root/optionalLibraries/Apache/Struts/1.1Apache Struts 1.1, 1.2.4, and 1.2.7 are optional libraries in WAS V7.0.
Run scp with ws_ant task
To use ws_ant to securely copy files between hosts requires the additional SCP task, found in jsch-1.42.jar. Drop the jar file in...
%WAS_HOME%\optionalLibraries\Apache\Ant\jsch-1.42.jar
...and set on the classpath...
set WAS_ANT_EXTRA_CLASSPATH=%WAS_HOME%\lib\bootstrap.jar;%WAS_HOME%\optionalLibraries\jython.jar;%WAS_HOME%\optionalLibraries\jython\jython.jar;%WAS_HOME%\optionalLibraries\Apache\Ant\jsch-1.42.jar;
The jsch-1.4.2.jar is available at www.jcraft.com/jsch
The SCP task copies a file or FileSet to or from a (remote) machine running an SSH daemon.
FileSet only works for copying files from the local machine to a remote machine.
This task depends on external libraries not included in the Ant distribution. See Library Dependencies for more information. This task has been tested with jsch-0.1.2 and later.
Related
Batch compiler ant task 
Related information
Rational Application Developer documentation