Class GenerateRebelMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    public class GenerateRebelMojo
    extends org.apache.maven.plugin.AbstractMojo
    Generate rebel.xml
    • Constructor Detail

      • GenerateRebelMojo

        public GenerateRebelMojo()
    • 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()