| org.apache.cactus.integration.ant.container.AbstractContainer org.apache.cactus.integration.ant.container.AbstractJavaContainer
All known Subclasses: org.apache.cactus.integration.ant.container.orion.AbstractOrionContainer, org.apache.cactus.integration.ant.container.weblogic.WebLogic7xContainer, org.apache.cactus.integration.ant.container.resin.AbstractResinContainer, org.apache.cactus.integration.ant.container.jboss.JBoss3xContainer, org.apache.cactus.integration.ant.container.tomcat.AbstractTomcatContainer,
AbstractJavaContainer | abstract public class AbstractJavaContainer extends AbstractContainer (Code) | | Abstract base class for containers that perform the starting and stopping
of the server by executing Java classes in a forked JVM.
version: $Id: AbstractJavaContainer.java 239096 2004-12-10 13:50:22Z felipeal $ |
Method Summary | |
final protected void | addToolsJarToClasspath(Path theClasspath) Adds the tools.jar to the classpath, except for Mac OSX as it is not
needed. | final protected Java | createJavaForShutDown() Creates a preinitialized instance of the Ant Java task to be used for
shutting down the container. | final protected Java | createJavaForStartUp() Creates a preinitialized instance of the Ant Java task to be used for
starting down the container. | final protected Variable | createSysProperty(String theKey, File theFile) Convenience method to create an Ant environment variable that points to
a file. | final protected Variable | createSysProperty(String theKey, Path thePath) Convenience method to create an Ant environment variable that contains
a path. | final protected Variable | createSysProperty(String theKey, String theValue) Convenience method to create an Ant environment variable that contains a
string. | final protected String | getJVMArgs() | final protected File | getToolsJar() Returns the file containing the JDK tools (such as the compiler). | final public void | setAppend(boolean isAppend) Sets whether output of the container should be appended to an existing
file, or the existing file should be truncated. | final public void | setJVMArgs(String theJVMArgs) Sets the arguments for JVM. | final public void | setOutput(File theOutput) Sets the file to which output of the container should be written. |
addToolsJarToClasspath | final protected void addToolsJarToClasspath(Path theClasspath)(Code) | | Adds the tools.jar to the classpath, except for Mac OSX as it is not
needed.
Parameters: theClasspath - the classpath object to which to add the tools.jar |
createJavaForShutDown | final protected Java createJavaForShutDown()(Code) | | Creates a preinitialized instance of the Ant Java task to be used for
shutting down the container.
The created task instance |
createJavaForStartUp | final protected Java createJavaForStartUp()(Code) | | Creates a preinitialized instance of the Ant Java task to be used for
starting down the container.
The created task instance |
createSysProperty | final protected Variable createSysProperty(String theKey, File theFile)(Code) | | Convenience method to create an Ant environment variable that points to
a file.
Parameters: theKey - The key or name of the variable Parameters: theFile - The file the variable should point to The created environment variable |
createSysProperty | final protected Variable createSysProperty(String theKey, Path thePath)(Code) | | Convenience method to create an Ant environment variable that contains
a path.
Parameters: theKey - The key or name of the variable Parameters: thePath - The path The created environment variable |
createSysProperty | final protected Variable createSysProperty(String theKey, String theValue)(Code) | | Convenience method to create an Ant environment variable that contains a
string.
Parameters: theKey - The key or name of the variable Parameters: theValue - The value The created environment variable |
getJVMArgs | final protected String getJVMArgs()(Code) | | The arguments for JVM. |
getToolsJar | final protected File getToolsJar() throws FileNotFoundException(Code) | | Returns the file containing the JDK tools (such as the compiler). This
method must not be called on Mac OSX as there is no tools.jar file on
that platform (everything is included in classes.jar).
The tools.jar file throws: FileNotFoundException - If the tools.jar file could not be found |
setAppend | final public void setAppend(boolean isAppend)(Code) | | Sets whether output of the container should be appended to an existing
file, or the existing file should be truncated.
Parameters: isAppend - Whether output should be appended |
setJVMArgs | final public void setJVMArgs(String theJVMArgs)(Code) | | Sets the arguments for JVM.
Parameters: theJVMArgs - The arguments |
setOutput | final public void setOutput(File theOutput)(Code) | | Sets the file to which output of the container should be written.
Parameters: theOutput - The output file to set |
Fields inherited from org.apache.cactus.integration.ant.container.AbstractContainer | final protected static String RESOURCE_PATH(Code)(Java Doc)
|
|
|