|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.github.jknack.amd4j.Amd4jMojo
public abstract class Amd4jMojo
| Field Summary | |
|---|---|
protected String |
baseUrl
The baseUrl to use. |
protected Boolean |
findNestedDependencies
Turn on discovering of nested dependencies. |
protected String[] |
names
The file to process. |
protected String[] |
paths
Set paths for modules. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
Amd4jMojo()
|
|
| Method Summary | |
|---|---|
protected abstract void |
doExecute(Amd4j amd4j,
Config config)
Execute the command. |
void |
execute()
|
protected void |
execute(Amd4j amd4j,
String basedir,
String name)
Execute the command. |
protected String |
header(String name)
Generated a header for error reporting. |
protected Config |
merge(String name,
Config config)
Override any option that migh be specify from the command line. |
protected Config |
newConfig()
Creates a new Config. |
protected void |
printf(String message,
Object... args)
Print a message to the maven output. |
protected void |
processError(String name,
String message,
Exception cause)
Log the error and generate a build failure. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String[] names
protected String baseUrl
protected String[] paths
protected Boolean findNestedDependencies
| Constructor Detail |
|---|
public Amd4jMojo()
| Method Detail |
|---|
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected final void execute(Amd4j amd4j,
String basedir,
String name)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
amd4j - An Amd4j instance.basedir - The working directory.name - The script's name to execute.
IOException - If something goes wrong.
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void processError(String name,
String message,
Exception cause)
throws org.apache.maven.plugin.MojoFailureException
name - The script name.message - The error message.cause - The error cause.
org.apache.maven.plugin.MojoFailureException - Generate a build failure.protected String header(String name)
name - The script's name.
protected abstract void doExecute(Amd4j amd4j,
Config config)
throws IOException
amd4j - An Amd4j instance.config - The configuration options.
IOException - If something goes wrong.
protected Config newConfig()
throws IOException
Config.
Config.
IOException - If something goes wrong.
protected Config merge(String name,
Config config)
throws IOException
config - The configuration options.
IOException - If file handler can't be obtained.
protected void printf(String message,
Object... args)
message - The message.args - The message's arguments.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||