public class WsAdmin
extends org.apache.tools.ant.Task
<wsadmin
wasHome="location of websphere installation"
command="command to be passed to the script processor"
properties="java properties file containing attributes to set in the JVM System properties"
profile="a script file to be executed before the main command or file"
profileName="the profile name of the desired server"
script="a set of commands in a file to be passed to the script processor"
lang="the language to be used to interpret scripts."
conntype="specifies the type of connection to be used."
host="the host to connect to"
port="the port on the host to connect to"
user="user ID to authenticate with"
password="password to authenticate with
jvmMaxMemory="256M"
fileEncoding="UTF8"
failonerror="true | false"
.
.
.
arg value=""/>
The wasHome attribute is optional and contains the location of the WebSphere Installation Directory.Constructor and Description |
---|
WsAdmin()
Constructor for WsEjbDeploy
|
Modifier and Type | Method and Description |
---|---|
org.apache.tools.ant.types.Commandline.Argument |
createArg()
Creates a nested arg element.
|
org.apache.tools.ant.types.Commandline.Argument |
createJvmarg()
Creates a nested jvmArg element.
|
void |
execute() |
boolean |
isDebug() |
void |
setCommand(java.lang.String command)
Sets the command.
|
void |
setConntype(java.lang.String conntype)
Sets the conntype.
|
void |
setDebug(boolean debug) |
void |
setFailonerror(boolean failonerror)
Sets the failonerror.
|
void |
setFileEncoding(java.lang.String fileEncoding) |
void |
setHost(java.lang.String host)
Sets the host.
|
void |
setJvmMaxMemory(java.lang.String jvmMaxMemory)
Sets the jvmMaxMemory.
|
void |
setLang(java.lang.String lang)
Sets the lang.
|
void |
setPassword(java.lang.String password)
Sets the password.
|
void |
setPort(java.lang.String port)
Sets the port.
|
void |
setProfile(java.lang.String profile)
Sets the profile.
|
void |
setProfileName(java.lang.String string)
Sets the server profile name.
|
void |
setProperties(java.lang.String properties)
Sets the properties.
|
void |
setScript(java.lang.String script)
Sets the script.
|
void |
setUser(java.lang.String user)
Sets the user.
|
void |
setWasHome(java.lang.String wasHome)
Sets the wasHome.
|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Task.execute()
public void setWasHome(java.lang.String wasHome)
wasHome
- The wasHome to setpublic void setFailonerror(boolean failonerror)
failonerror
- The failonerror to setpublic void setCommand(java.lang.String command)
command
- The command to setpublic void setProperties(java.lang.String properties)
properties
- The properties to setpublic void setProfile(java.lang.String profile)
profile
- The profile to setpublic void setProfileName(java.lang.String string)
profileName
- The server profile name to setpublic void setScript(java.lang.String script)
script
- The script to setpublic void setLang(java.lang.String lang)
lang
- The lang to setpublic void setConntype(java.lang.String conntype)
conntype
- The conntype to setpublic void setHost(java.lang.String host)
host
- The host to setpublic void setPort(java.lang.String port)
port
- The port to setpublic void setUser(java.lang.String user)
user
- The user to setpublic void setPassword(java.lang.String password)
password
- The password to setpublic org.apache.tools.ant.types.Commandline.Argument createArg()
public org.apache.tools.ant.types.Commandline.Argument createJvmarg()
public void setJvmMaxMemory(java.lang.String jvmMaxMemory)
jvmMaxMemory
- The JVM MaxMemory to setpublic void setDebug(boolean debug)
debug
- public boolean isDebug()
public void setFileEncoding(java.lang.String fileEncoding)
fileEncoding
- The fileEncoding to set.