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
public class GenerateRebelMojo extends org.apache.maven.plugin.AbstractMojoGenerate rebel.xml
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHARTSET_UTF8
-
Constructor Summary
Constructors Constructor Description GenerateRebelMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected StringfixFilePath(File file)Returns path expressed through rootPath and relativePath.protected StringfixFilePath(String path)org.apache.maven.project.MavenProjectgetProject()StringgetRelativePath()StringgetRootPath()voidsetProject(org.apache.maven.project.MavenProject project)voidsetRelativePath(String relativePath)voidsetRootPath(String rootPath)
-
-
-
Field Detail
-
CHARTSET_UTF8
public static final String CHARTSET_UTF8
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
fixFilePath
protected String fixFilePath(String path) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
fixFilePath
protected String fixFilePath(File file) throws org.apache.maven.plugin.MojoExecutionException
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
public void setRelativePath(String relativePath)
-
getRelativePath
public String getRelativePath()
-
setRootPath
public void setRootPath(String rootPath)
-
getRootPath
public String getRootPath()
-
-