Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
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 the
deploy
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 the directory<
INSTALL
>/examples/common
as follows:Replace
ManagerName
andManagerPassword
with the values you specified for the user name and password when you installed the Java WSDP.The
Ant
build files import these properties with the following element:The document Manager App HOW-TO, at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html
, contains reference information about the Ant tasks.
Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.