Customizing the Ant script to run JAX-WS web service Ant tasks in a command line

Before you run the Ant task in a command line to build a web service, you must change the script that specifies how the task runs.

About this task

To change the script for the Ant task:

Procedure

  1. In your product installation directory, go to the ant directory under the jar file that contains the org.eclipse.wst.command.env plug-in.
    • Windows: this directory might be C:\<your_WDT_intallation>\plugins\org.eclipse.wst.command.env_X\ant, where 'X' is the latest version of the plug-in
    • Linux: this directory might be <your_WDT_installation>/plugins/org.eclipse.wst.command.env_X/ant, where 'X' is the latest version of the plug-in.
  2. Extract the contents of the jar file and edit the file that specifies how the Ant task runs. 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:\<your_WDT_intallation>\JRE\bin\java.exe; in Linux, this value might be <your_java_installation>/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 path might be C:\<your_WDT_intallation>\startup.jar; in Linux, this path might be <your_WDT_installation>/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.
  4. Compress the plug-in directory to jar file.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tprepcmdscriptjaxws.html