Package org.jboss.jca.sjc.maven
Class AbstractHostPortMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jboss.jca.sjc.maven.AbstractHostPortMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public abstract class AbstractHostPortMojo
extends org.apache.maven.plugin.AbstractMojo
An abstract host / port mojo
- Author:
- Jesper Pedersen
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
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.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractHostPortMojo
public AbstractHostPortMojo()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.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute- Throws:
org.apache.maven.plugin.MojoExecutionException- Thrown if the plugin cant be executedorg.apache.maven.plugin.MojoFailureException- Thrown if there is an error
-