What is ANT and how do I run it in WebSphere Application Server
 Technote (FAQ)
 
Question
Are the ANT utilities that are shipped with IBM® WebSphere® Application Server the open source ANT or is there something additional included? How do I run my ANT build file in WebSphere Application Server?
 
Answer
ANT is a Java™ based build tool and the name stands for Another Neat Tool. ANT is a powerful scripting tool that can be used to automate build and deployment processes. It is similar to the Make tool, except that instead of using operating system shell-based commands, ANT uses Java classes to perform its operations. WebSphere Application Server includes the Open Source ANT plus some additional WebSphere Application Server specific ANT tasks such as:
  • wsInstallApp enables you to install a new application into a WebSphere Application Server or Cell
  • wsUninstallApp enables you to uninstall an existing application from a WebSphere Application Server or Cell
  • wsListApps lists all the applications installed on a WebSphere Application Server or Cell
  • wsStartServer enables you to start a stand-alone server instance
  • wsadmin executes the WebSphere Application Server command-line administration tool with the specified arguments.

To run your ANT build files in WebSphere Application Server, use the ws_ant command line utility. ws_ant also sets up the correct classpath so that the WebSphere Application Server ANT tasks can be used successfully along with the ANT built-in tasks. Run ws_ant from the bin directory under your WebSphere Application Server install path. For example, to execute the target named install in your build file, enter the following command:

ws_ant -buildfile C:\build.xml install

Refer to the ANT tasks documentation in the Information Center for more details.

 
Related information
Apache ANT User Manual
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s): Windows
Software version: 6.1
Software edition:
Reference #: 1081282
IBM Group: Software Group
Modified date: Mar 4, 2004