Package org.apache.catalina.startup
Class Tool
- java.lang.Object
- 
- org.apache.catalina.startup.Tool
 
- 
 public final class Tool extends java.lang.ObjectGeneral 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: - Passes the catalina.homesystem property configured with the pathname of the Tomcat installation directory.
- Sets the system classpath to include bootstrap.jarand$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: - ${options} - Command line options for this Tool wrapper.
     The following options are supported:
     - -ant : Set the ant.homesystem property to corresponding to the value ofcatalina.home(useful when your command line tool runs Ant).
- -common : Add common/classesandcommon/libto the class loader repositories.
- -server : Add server/classesandserver/libto the class loader repositories.
- -shared : Add shared/classesandshared/libto the class loader repositories.
 
- -ant : Set the 
- ${classname} - Fully qualified Java class name of the application's main class.
- ${arguments} - Command line arguments to be passed to
     the application's main()method.
 - Author:
- Craig R. McClanahan
 
- Passes the 
- 
- 
Constructor SummaryConstructors Constructor Description Tool()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)The main program for the bootstrap.
 
-