Package org.jboss.jca.sjc.ant
Class AbstractHostPortTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.jboss.jca.sjc.ant.AbstractHostPortTask
- All Implemented Interfaces:
Cloneable
public abstract class AbstractHostPortTask
extends org.apache.tools.ant.Task
An abstract host/port task
- Author:
- Jesper Pedersen
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute()Executeprotected SerializableexecuteCommand(String command) Execute commandprotected SerializableexecuteCommand(String command, Serializable[] arguments) Execute commandgetHost()Get the hostintgetPort()Get the portprotected booleanisCommandAvailable(String command) Is a command availableprotected booleanisLocal()Is localvoidSet the hostvoidsetPort(int v) Set the portMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
AbstractHostPortTask
public AbstractHostPortTask()Constructor
-
-
Method Details
-
getHost
Get the host- Returns:
- The value
-
setHost
Set the host- Parameters:
v- The value
-
getPort
public int getPort()Get the port- Returns:
- The value
-
setPort
public void setPort(int v) Set the port- Parameters:
v- The value
-
isLocal
protected boolean isLocal()Is local- Returns:
- True if local; otherwise false
-
isCommandAvailable
Is a command available- Parameters:
command- The command name- Returns:
- True if available; otherwise false
- Throws:
Throwable- If an error occurs
-
executeCommand
Execute command- Parameters:
command- The command- Returns:
- The result
- Throws:
Throwable- If an error occurs
-
executeCommand
Execute command- Parameters:
command- The commandarguments- The arguments- Returns:
- The result
- Throws:
Throwable- If an error occurs
-
execute
public abstract void execute() throws org.apache.tools.ant.BuildExceptionExecute- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException- If the build fails
-