public final class Tool
extends java.lang.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.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.