org.apache.catalina.startup
public final class Tool extends Object
General purpose wrapper for command line tools that should execute in an environment with the common class loader environment set up by Catalina. This should be executed from a command line script that conforms to the following requirements:
catalina.home
system property configured with
the pathname of the Tomcat installation directory.bootstrap.jar
and
$JAVA_HOME/lib/tools.jar
.The command line to execute the tool looks like:
java -classpath $CLASSPATH org.apache.catalina.startup.Tool \ ${options} ${classname} ${arguments}
with the following replacement contents:
ant.home
system property
to corresponding to the value of catalina.home
(useful when your command line tool runs Ant).common/classes
and
common/lib
server/classes
and
server/lib
to the class loader repositories.shared/classes
and
shared/lib
to the class loader repositories.main()
method.Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Method Summary | |
---|---|
static void | main(String[] args)
The main program for the bootstrap.
|
Parameters: args Command line arguments to be processed