Class GenerateRebelMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.zeroturnaround.javarebel.maven.GenerateRebelMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate",
defaultPhase=PROCESS_RESOURCES,
threadSafe=true)
public class GenerateRebelMojo
extends org.apache.maven.plugin.AbstractMojo
Generate rebel.xml
-
Field Summary
FieldsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected StringfixFilePath(File file) Returns path expressed through rootPath and relativePath.protected StringfixFilePath(String path) org.apache.maven.project.MavenProjectvoidsetProject(org.apache.maven.project.MavenProject project) voidsetRelativePath(String relativePath) voidsetRootPath(String rootPath) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
CHARTSET_UTF8
- See Also:
-
-
Constructor Details
-
GenerateRebelMojo
public GenerateRebelMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
fixFilePath
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
fixFilePath
Returns path expressed through rootPath and relativePath.- Parameters:
file- to be fixed- Returns:
- fixed path
- Throws:
org.apache.maven.plugin.MojoExecutionException- if something goes wrong
-
setProject
public void setProject(org.apache.maven.project.MavenProject project) -
getProject
public org.apache.maven.project.MavenProject getProject() -
setRelativePath
-
getRelativePath
-
setRootPath
-
getRootPath
-