How to use Apache Ant in WebSphere (ws_ant)

Home > Search > How-to
  by

Apache Ant is a tool that can be used to compile, package, and deploy (or remove) an application in WebSphere. In this way, instead of deploying a EAR, WAR, JAR or SAR using the WebSphere admin console or instead of deploying an app using monitoredDeployableApps, you could use Apache Ant to deploy or remove an application from WebSphere. Apache Ant can also restart a JVM.

When WebSphere is install, the Apache Ant command line tool will be included. The tool is located in the was_install_root/bin/ directory, and is named ws_ant.bat (Windows) or ws_ant.sh (Linux). The Apache Ant tool reads an XML file to know what to do.

./ws_ant.sh -f example.xml

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments