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:
- 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.
- 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.
- 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.
- 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.
- 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.
- Save the script file.