|
Home
TOC Index |
|
Running Manager Commands Using Ant Tasks
The version of
Antdistributed with the Java WSDP supports tasks that invokemanagercommands, thus allowing you to run the commands from a terminal window. The tasks are summarized in Table B-2.
Note: An application that is installed is not available after Tomcat is restarted. To make an application permanently available, use thedeploytask.
Since a user of the
manageris required to be authenticated, theAnttasks takeusernameandpasswordattributes in addition to the URL. Instead of embedding these in theAntbuild file, you can use the approach followed by the tutorial examples. You set theusernameandpasswordproperties in a file namedbuild.propertiesin your home directory as follows:username=ManagerNamepassword=ManagerPasswordReplace
ManagerNameandManagerPasswordwith the values you specified for the user name and password when you installed the Java WSDP.
Note: On Windows, your home directory is the directory where your Windows profile is stored. For example, on Windows 2000 it would beC:\Documents and Settings\yourProfile.
The
Antbuild files import these properties with the following element:<property file="${user.home}/build.properties"/>
|
Home
TOC Index |
|
This tutorial contains information on the 1.0 version of the Java Web Services Developer Pack.
All of the material in The Java Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.