Changing the script for an Ant task to build a Web service in a command line

Before running the Ant task in a command line to build a Web service , you must change the script that specifies how the task will run.
To change the script for the Ant task:
  1. In your product installation, navigate to the ant directory under the directory that contains the org.eclipse.wst.command.env plugin. For example, in Windows®, this directory might be C:\Program Files\IBM\SDP70Shared\plugins\org.eclipse.wst.command.env_X\ant, where 'X' is the latest version of the plugin. In Linux®, this directory might be opt/IBM/SDP70Shared/plugins/org.eclipse.wst.command.env_X/ant, where 'X' is the latest version of the plugin.
  2. Edit the file that specifies how the Ant task will run. In Windows, this file is wsant.bat; in Linux, this file is wsant.sh.
    1. Set the JAVAEXE parameter to the location and name of the JRE java.exe file that you want the Ant task to use. For example, in Windows, this value might be C:\Program Files\IBM\SDP70\JRE\bin\java.exe; in Linux, this value might be /opt/IBM/SDP70/jdk/jre/bin/java.
    2. Set the STARTUPJAR parameter to the location and name of the Eclipse startup JAR file in your product installation. For example, in Windows, this value might be C:\Program Files\IBM\SDP70\startup.jar; in Linux, this value might be /opt/IBM/SDP70/startup.jar.
    3. Set the WORKSPACE parameter to the location and name of the product workspace where you want to build the Web service. For example, in Windows, this value might be C:\workspace; in Linux, this value might be /opt/workspace.
  3. Save the script file.

Feedback