Package org.codehaus.mojo.buildhelper
Class BeanshellPropertyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
org.codehaus.mojo.buildhelper.BeanshellPropertyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="bsh-property",
defaultPhase=VALIDATE,
threadSafe=true)
public class BeanshellPropertyMojo
extends AbstractDefinePropertyMojo
Define one or many properties as a result of a Beanshell script invocation. Like
gmaven-plugin, some variables are
defined:
project: the actual Maven project,session: the executingMavenSession,settings: the executingSettings.log: the logger of the Mojo (seeAbstractMojo.getLog()).
- Since:
- 1.8
- Author:
- Hervé Boutemy
-
Field Summary
Fields inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
defineProperty, getProjectMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
BeanshellPropertyMojo
public BeanshellPropertyMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoFailureExceptionMain plugin execution- Throws:
org.apache.maven.plugin.MojoFailureException
-