public abstract class AbstractExecCliMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
buildDirectory
The build directory (root of build works).
|
protected boolean |
failOnError
Whether to fail the build if an error occurs while uploading.
|
protected String |
host
Remote RHQ server host.
|
protected boolean |
login
Whether to login to a remote RHQ server.
|
protected String |
password
Authentication password.
|
protected int |
port
Remote RHQ server port.
|
protected File |
rhqCliDirectory
The CLI directory (where to install the RHQ CLI).
|
protected String |
rhqVersion
Version of the RHQ CLI.
|
protected String |
username
Authentication user name.
|
| Constructor and Description |
|---|
AbstractExecCliMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doExecute() |
void |
execute() |
protected File |
getRhqCliStartScriptFile() |
protected void |
handleException(Exception e) |
protected void |
handleFailure(String message) |
protected abstract boolean |
shouldSkip() |
protected abstract void |
validateParams() |
@Parameter(defaultValue="${project.build.directory}",
required=true,
readonly=true)
protected File buildDirectory
@Parameter(defaultValue="${project.build.directory}/rhq-cli",
required=true)
protected File rhqCliDirectory
@Parameter(required=true) protected String rhqVersion
@Parameter(defaultValue="false") protected boolean login
@Parameter(required=false) protected String host
login is set to true.@Parameter(defaultValue="7080") protected int port
@Parameter(required=false) protected String username
login is set to true.@Parameter(required=false) protected String password
login is set to true.@Parameter(defaultValue="true") protected boolean failOnError
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract boolean shouldSkip()
protected abstract void validateParams()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected File getRhqCliStartScriptFile() throws IOException
IOExceptionprotected void handleFailure(String message) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void handleException(Exception e) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2013-2014 Red Hat, Inc.. All Rights Reserved.