Ant tasks for automation of webMethods Integration Server
- Install Apache Ant version 1.7 or higher
- Configure the following environment variables
ANT_HOMEpointing to your Ant installation locationWEBMETHODS_HOMEpointing to the location directory of the webMethods suite (not Integration Server)JAVA_HOMEpointing to a JDK. The easiest way will be to leverage the value fromWEBMETHODS_HOME.- Linux/UNIX/macOS:
JAVA_HOME=$WEBMETHODS_HOME/jvm/jvm(enclose in double-quotes, if the path contains spaces) - Windows:
JAVA_HOME=%WEBMETHODS_HOME%\jvm\jvm
- Linux/UNIX/macOS:
- Ensure that
$ANT_HOME/binand$JAVA_HOME/binare part of the search path (PATHvariable)
- Build jar file by simply calling Ant with the default target:
ant - The jar file can be found in
./buildunder the namewm-is-ant-tasks_<VERSION>.jar
- Include jar file in your Ant script as shown on
samples.xml. - The connection parameters, since they are ordinary Ant properties (
-Dproperty.name="Property value"), can also be provided on the command line.
To reload an Integration Server package:
ant -f samples.xml -DwebMethods.package.name=Default reload-packageThere are many more examples in the samples.xml file.
These tools are provided as-is and without warranty or support. Users are free to use, fork and modify them, subject to the license agreement.
webMethods® is a registered trademark of International Business Machines Corporation (“IBM”).