Package sk.antons.script
Class ScriptMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
sk.antons.script.ScriptMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="script",
defaultPhase=PACKAGE,
requiresDependencyResolution=RUNTIME)
public class ScriptMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected org.apache.maven.artifact.repository.ArtifactRepositoryprotected Stringprotected org.apache.maven.project.MavenProjectprotected Stringprotected Stringprotected StringFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project -
localRepository
@Parameter(defaultValue="${localRepository}", readonly=true, required=true) protected org.apache.maven.artifact.repository.ArtifactRepository localRepository -
destination
@Parameter(property="destination", defaultValue="${script.destination}", required=false) protected String destination -
filename
@Parameter(property="filename", defaultValue="${script.name}", required=false) protected String filename -
includeTest
@Parameter(property="includeTest", defaultValue="${script.includeTest}", required=false) protected String includeTest -
includeRepo
@Parameter(property="includeRepo", defaultValue="${script.includeRepo}", required=false) protected String includeRepo -
executable
@Parameter(property="exec", defaultValue="${script.exec}", required=false) protected String executable -
shell
-
unix
-
windows
@Parameter(property="windows", defaultValue="${script.windows}", required=false) protected String windows -
pack
-
-
Constructor Details
-
ScriptMojo
public ScriptMojo()
-
-
Method Details
-
initProperty
-
initProperties
protected void initProperties() -
printConf
protected void printConf() -
includeTest
protected boolean includeTest() -
includeRepo
protected boolean includeRepo() -
unix
protected boolean unix() -
windows
protected boolean windows() -
pack
protected boolean pack() -
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-