Once generated or modified, your Ant scripts can be executed without launching the IDE; this is called the Headless mode. To run the Ant script, you simply invoke the antRunner application, passing the Ant file as argument.
echo off
setlocal
set ECLIPSE=<installdir>\IBM\SDP70\
set WORKSPACE=\%ECLIPSE%\MyWorkspaceANT
set BUILDFILE=<installdir>\developerwork\Customer.xml
rem set JAVA_HOME=<installdire>\Programs\jdksun1.4.2
set JAVA_HOME=%ECLIPSE%\jdk\jre
set PATH=%JAVA_HOME%\bin;%PATH%
set CLASSPATH=%JAVA_HOME%\lib;%CLASSPATH%
java -cp %ECLIPSE%\startup.jar org.eclipse.core.launcher.Main -clean -data %WORKSPACE%
-application org.eclipse.ant.core.antRunner -buildfile %BUILDFILE%
Where:
ECLIPSE environment variable defines the path to the eclipse folder within RAD
WORKSPACE defines the path where the workspace will be created
BUILDFILE is the path to your generated Ant script you would like to run.
You can modify the variables in the batch file to fit your environment: <target name="Init1"> <property name="debug" value="true"/> <property name="project1" value="project111"/> <property name="ra.project" value="cicseci602"/> <property name="ra.runtime" value="WebSphere Application Server v6.1"/> <property name="ra.file" value="Cannot Locate RAR "/> </target>