Home
TOC Index |
Running Manager Commands Using Ant Tasks
The version of
Ant
distributed with the Java WSDP supports tasks that invokemanager
commands, 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 thedeploy
task.
Since a user of the
manager
is required to be authenticated, theAnt
tasks takeusername
andpassword
attributes in addition to the URL. Instead of embedding these in theAnt
build file, you can use the approach followed by the tutorial examples. You set theusername
andpassword
properties in a file namedbuild.properties
in your home directory as follows:username=ManagerName
password=ManagerPassword
Replace
ManagerName
andManagerPassword
with 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
Ant
build 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.