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
to the class loader repositories.server/classes
and
server/lib
to the class loader repositories.shared/classes
and
shared/lib
to the class loader repositories.main()
method.Constructor and Description |
---|
Tool() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
The main program for the bootstrap.
|
public static void main(String[] args)
args
- Command line arguments to be processedCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.