org.apache.catalina.ant
public class: InstallTask [javadoc |
source]
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.catalina.ant.BaseRedirectorHelperTask
org.apache.catalina.ant.AbstractCatalinaTask
org.apache.catalina.ant.InstallTask
All Implemented Interfaces:
Cloneable
Deprecated! Replaced - by DeployTask
Ant task that implements the
/install command, supported by the
Tomcat manager application.
- author:
Craig - R. McClanahan
- version:
$ - Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
- since:
4.1 -
| Field Summary |
|---|
| protected String | config | URL of the context configuration file for this application, if any. |
| protected String | path | The context path of the web application we are managing. |
| protected String | war | URL of the web application archive (WAR) file, or the unpacked directory
containing this application, if any. |
| Methods from org.apache.catalina.ant.AbstractCatalinaTask: |
|---|
|
execute, execute, execute, getCharset, getPassword, getUrl, getUsername, setCharset, setPassword, setUrl, setUsername |
| Methods from org.apache.catalina.ant.BaseRedirectorHelperTask: |
|---|
|
addConfiguredRedirector, closeRedirector, handleErrorFlush, handleErrorOutput, handleFlush, handleFlush, handleOutput, handleOutput, isFailOnError, openRedirector, setAlwaysLog, setAppend, setCreateEmptyFiles, setError, setErrorProperty, setFailonerror, setLogError, setOutput, setOutputproperty |
| Methods from org.apache.tools.ant.Task: |
|---|
|
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Method from org.apache.catalina.ant.InstallTask Detail: |
public void execute() throws BuildException {
super.execute();
if (path == null) {
throw new BuildException
("Must specify 'path' attribute");
}
if ((config == null) && (war == null)) {
throw new BuildException
("Must specify at least one of 'config' and 'war'");
}
StringBuffer sb = new StringBuffer("/install?path=");
sb.append(URLEncoder.encode(this.path));
if (config != null) {
sb.append("&config=");
sb.append(URLEncoder.encode(config));
}
if (war != null) {
sb.append("&war=");
sb.append(URLEncoder.encode(war));
}
execute(sb.toString());
} Deprecated!Execute the requested operation. |
public String getConfig() {
return (this.config);
} Deprecated! |
public String getPath() {
return (this.path);
} Deprecated! |
public String getWar() {
return (this.war);
} Deprecated! |
public void setConfig(String config) {
this.config = config;
} Deprecated! |
public void setPath(String path) {
this.path = path;
} Deprecated! |
public void setWar(String war) {
this.war = war;
} Deprecated! |