Date Created: Tue 10-Feb-2009

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/



ws_ant commands for WebSphere ant.

The table below lists the available ant tasks which can be used in ant build scripts to automate administration of certain areas of WebSphere. WebSphere also provides a command line tool called ws_ant.sh (Unix) or ws_ant.bat (Windows) which can be used to set up an ant shell. You configure the automation task as you would any ant task using a build.xml file.

If you want total control of WebSphere you must use Jython using the wsadmin,sh or wsadmin.bat commands.

Here are some links from my site:

https://webspheretools.com/sites/webspheretools.nsf/docs!searchview&query=[pagetitle]+CONTAINS+*ws_ant*&SearchOrder=1

 
Date Created
 
Title
  10/02/2009   ws_ant commands for WebSphere ant
  08/03/2009   ws_ant script to install an application into WebSphere.
  27/01/2009   WebSphere Consultants
  22/01/2008   Ant script to start and stop applications in WebSphere
  22/01/2008   Ant script to validate an ear file after depoyment on WebSphere Application Server
  22/01/2008   Ant build file to show IBM WebSphere Application server status.
  12/08/2008   Lotus Notes WebSphere Consultant
  03/07/2008   Java Consultant. Java Consulting.


Note: If you have access to the Application Server Toolkit (ASTK) you can search in the help for WebSphere ant to gain some useful WebSphere ant knowledge



Here are key commands:

Class Summary of Package com.ibm.websphere.ant.tasks
endptEnabler The endptEnabler task enables a set of web services within an Enterprise Application Archive (EAR) file.
endptEnabler.Property Used for nested property definitions.
WsEjbDeploy The wsejbdeploy task executes the WebSphere EJB Deploy tool on the specified Jar file with the specified options.
WSDeploy The wsdeploy task executes the WebSphere Web Services Deploy tool on the specified EAR file with the specified options.
WSDL2Java The WSDL2Java task creates Java classes and deployment descriptor templates from a Web Services Description Language (WSDL) file.
WSDL2Java.Mapping Used for nested package definitions.
UninstallApplication The wsUninstallApp task enables you to uninstall an existing application from a WebSphere Server or Cell.
StopServer The wsStopServer task enables you to stop a standalone server instance.
StopApplication The wsStopApp task enables you to stop an existing or newly installed application on a WebSphere Server or in a WebSphere Cell.
StartServer The wsStartServer task enables you to start a standalone server instance.
StartApplication The wsStartApp task enables you to start an existing or newly installed application on a WebSphere Server or in a WebSphere Cell.
ServerStatus The wsServerStatus task enables you to get status on a server instance or all server instances.
ServerControl ServerControl is the abstract base class of StartServer, StopServer, and ServerStatus.
NLSEcho wsNLSEcho Task: This is a echo extension task to display translated messages.
ModuleValidator The wsValidateModule task performs validation of the deployment descriptor, extensions, and bindings documents of an EAR, WAR, EJB Jar, or Application Client Jar.
Messages The Messages task is used by other wsanttasks to retrieve their National Language Messages.
ListApplications The wsListApps task lists all the applications installed on a WebSphere Server or Cell.
JspC The JspC task compiles JSP files into .class files.

JspC is included in WebSphere Application Server and is found in the jar wsanttasks.jar.
Java2WSDL The Java2WSDL task maps a Java class to a Web Services Description Language (WSDL) file.
Java2WSDL.Mapping Used for nested package definitions.
WsAdmin The wsadmin task executes the WebSphere command-line administration tool with the specified arguments.
InstallApplication The wsInstallApp task enables you to install a new application into a WebSphere Server or Cell.
DefaultBindings The wsDefaultBindings task enables you to generate default IBM WebSphere Bindings for the specified EAR file.
If you wish to know more about the ant class hierarchy consult the link below.
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rxml_7adminjdbc2.html

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/

Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • My Blog
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Other Categories