ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/anttasks.htm

64 lines
6.7 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>ANT tasks</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="anttasks"></a>Ant tasks</h4>
<p>The ws_ant tool supports these tasks:</p>
<ul>
<li><p><strong>wsadmin</strong><br>
The wsadmin task runs the command-line administration tool with the specified arguments. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/WsAdmin.html">com.ibm.websphere.ant.tasks.WsAdmin</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You can run this task from a remote machine that has the WebSphere Application Server - Express administrative tools installed.</p>
<p><strong>Note:</strong> When you use the wsadmin scripting objects, you must include an additional dollar sign ($) before the name of the object. For example, if you want ws_ant to invoke the $AdminApp list command to list the applications on your application server, include this task in the ws_ant buildfile:</p>
<pre>&lt;taskdef name=&quot;wsAdmin&quot; classname=&quot;com.ibm.websphere.ant.tasks.WsAdmin&quot;/&gt;
&lt;target name=&quot;<em>target</em>&quot;&gt;
&lt;wsAdmin command=&quot;$$AdminApp list&quot;/&gt;
&lt;/target&gt;</pre>
<p>where <em>target</em> is a value that is passed on the ws_ant call.</p></li>
<li><p><strong>wsInstallApp</strong><br>
The wsInstallApp task installs an application into an application server or a cell. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/InstallApplication.html">com.ibm.websphere.ant.tasks.InstallApplication</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> Because wsadmin cannot perform remote installations, you must run this task on the local machine.</p></li>
<li><p><strong>wsJspC</strong><br>
The wsJspC task compiles a directory of JSP files into .class files. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/JspC.html">com.ibm.websphere.ant.tasks.JspC</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You must run this task on the local machine.</p></li>
<li><p><strong>wsListApps</strong><br>
The wsListApps task lists all the applications installed on an application server or a cell. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/ListApplications.html">com.ibm.websphere.ant.tasks.ListApplications</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You can run this task from a remote machine that has the WebSphere Application Server - Express administrative tools installed.</p></li>
<li><p><strong>wsNLSEcho</strong><br>
The wsNLSEcho task provides message retrieval with translation and variable substitution. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/NLSEcho.html">com.ibm.websphere.ant.tasks.NLSEcho</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You must run this task on the local machine.</p></li>
<li><p><strong>wsServerStatus</strong><br>
The wsServerStatus task displays the status of one application server or all application servers. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/ServerStatus.html">com.ibm.websphere.ant.tasks.ServerStatus</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You must run this task on the local machine.</p></li>
<li><p><strong>wsStartApp</strong><br>
The wsStartApp task starts an application in an application server or cell. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/StartApplication.html">com.ibm.websphere.ant.tasks.StartApplication</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You can run this task from a remote machine that has the WebSphere Application Server - Express administrative tools installed.</p></li>
<li><p><strong>wsStartServer</strong><br>
The wsStartServer task starts an application server. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/StartServer.html">com.ibm.websphere.ant.tasks.StartServer</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You must run this task on the local machine.</p></li>
<li><p><strong>wsStopApp</strong><br>
The wsStopApp task stops an application in an application server or cell. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/StopApplication.html">com.ibm.websphere.ant.tasks.StopApplication</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You can run this task from a remote machine that has the WebSphere Application Server - Express administrative tools installed.</p></li>
<li><p><strong>wsStopServer</strong><br>
The wsStopServer task stops an application server. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/StopServer.html">com.ibm.websphere.ant.tasks.StopServer</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You must run this task on the local machine.</p></li>
<li><p><strong>wsUninstallApp</strong><br>
The wsUninstallApp task uninstalls an application from an application server or cell. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/UninstallApplication.html">com.ibm.websphere.ant.tasks.UninstallApplication</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> Because wsadmin cannot uninstall applications remotely, you must run this task on the local machine.</p></li>
<li><p><strong>wsValidateModule</strong><br>
The wsValidateModule task validates the deployment descriptor, extensions, and bindings documents of an EAR, WAR, EJB Jar, or Application Client Jar. The implementation class for this task is <a href="../program/apidocs/ae/com/ibm/websphere/ant/tasks/ModuleValidator.html">com.ibm.websphere.ant.tasks.ModuleValidator</a>. <img src="api.gif" width="18" height="15" align="absmiddle" alt="Link to API documentation"> You must run this task on the local machine.</p></li>
</ul>
</body>
</html>