public class AdminClientTask
extends org.apache.tools.ant.taskdefs.MatchingTask
| Constructor and Description |
|---|
AdminClientTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArg(String argument)
add one arg
|
protected void |
addArg(String argument,
boolean test)
add one arg
|
protected void |
addArgs(String argument,
String param)
add an arg pair
|
protected void |
addArgs(String argument,
String param,
boolean test)
add an arg pair if the test is true
|
org.apache.tools.ant.types.Path |
createClasspath()
Set the optional classpath
|
void |
execute()
Processes a set of administration commands.
|
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the optional classpath
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Set the reference to an optional classpath
|
void |
setDebug(boolean debug)
set a debug flag
|
void |
setFailOnError(boolean fail)
Whether or not the build should halt if this task fails.
|
void |
setFileProtocol(String fileProtocol)
specifies that a simple file protocol be used
|
void |
setFork(boolean f)
If true, forks the ant invocation.
|
void |
setHostname(String hostname)
name the host to admin
|
void |
setNewPassword(String newPassword)
set a new password; only valid if action=passwd
|
void |
setPassword(String password)
the admin password
|
void |
setPort(int port)
the port to connect to
|
void |
setServletPath(String servletPath)
the path to the AxisAdmin servlet
|
void |
setSrcdir(File srcDir)
Set the source dir to find the source text files.
|
void |
setTransportChain(String transportChain)
set the transport chain to use
|
void |
setUrl(String url)
full url to the admin endpoint
|
void |
setUsername(String username)
username to log in as
|
void |
setXmlFile(File xmlFile)
the name of the XML file containing deployment information
|
void |
traceParams(int logLevel)
trace out parameters
|
protected void |
validate()
validation code
|
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsgetDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskNamepublic void setDebug(boolean debug)
debug - public void setNewPassword(String newPassword)
newPassword - public void setUrl(String url)
url - public void setFileProtocol(String fileProtocol)
fileProtocol - public void setHostname(String hostname)
hostname - public void setPassword(String password)
password - public void setPort(int port)
port - public void setServletPath(String servletPath)
servletPath - public void setSrcdir(File srcDir)
public void setXmlFile(File xmlFile)
xmlFile - public void setTransportChain(String transportChain)
transportChain - public void setUsername(String username)
username - public void setFailOnError(boolean fail)
true.public void setFork(boolean f)
f - "true|false|on|off|yes|no"protected void validate()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if validation failedpublic void traceParams(int logLevel)
logLevel - to log atProject.log(java.lang.String)public void execute()
throws org.apache.tools.ant.BuildException
Processes a set of administration commands.
The following commands are available:
-lurl sets the AxisServlet URL-hhostName sets the AxisServlet host-pportNumber sets the AxisServlet port-sservletPath sets the path to the
AxisServlet-ffileName specifies that a simple file
protocol should be used-uusername sets the username-wpassword sets the password-d sets the debug flag (for instance, -ddd would
set it to 3)-tname sets the transport chain touselist will list the currently deployed servicesquit will quit (???)passwd value changes the admin passwordxmlConfigFile deploys or undeploys
Axis components and web servicesIf -l or -h -p -s are not set, the
AdminClient will invoke
http://localhost:8080/axis/servlet/AxisServlet.
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - something went wrongprotected void addArg(String argument)
argument - protected void addArg(String argument, boolean test)
argument - protected void addArgs(String argument, String param)
argument - param - protected void addArgs(String argument, String param, boolean test)
argument - first argparam - param to accompanytest - test to trigger argument addpublic void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath - the classpath to use when loading classpublic org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
r - the id of the Ant path instance to act as the classpathCopyright © The Apache Software Foundation. All Rights Reserved.