Class AbstractJaxxMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.plugin.Plugin, org.nuiton.plugin.PluginWithEncoding
    Direct Known Subclasses:
    AbstractGenerateHelpMojo, GenerateMojo

    public abstract class AbstractJaxxMojo
    extends org.nuiton.plugin.AbstractPlugin
    implements org.nuiton.plugin.PluginWithEncoding
    Abstract Jaxx Mojo.
    Since:
    1.3
    Author:
    Tony Chemit - chemit@codelutin.com
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AbstractJaxxMojo.JaxxFileUpdater
      To test if a jaxx source (or his css ) file is newser than his generated java source file.
      • Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin

        org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean generateHelp
      Flag to activate help id detection while parsing jaxx files.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean checkPackaging()  
      String getEncoding()  
      protected Long getLastModified​(File dir)  
      org.apache.maven.project.MavenProject getProject()  
      abstract File getTargetDirectory()  
      boolean isForce()  
      boolean isVerbose()  
      void setEncoding​(String encoding)  
      void setForce​(boolean force)  
      void setProject​(org.apache.maven.project.MavenProject project)  
      abstract void setTargetDirectory​(File targetDirectory)  
      void setVerbose​(boolean verbose)  
      • Methods inherited from class org.nuiton.plugin.AbstractPlugin

        acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkEncoding, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, doAction, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, init, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from interface org.apache.maven.plugin.Mojo

        execute, getLog, setLog
    • Field Detail

      • generateHelp

        @Parameter(property="jaxx.generateHelp",
                   defaultValue="false")
        protected boolean generateHelp
        Flag to activate help id detection while parsing jaxx files. By default, not active.
        Since:
        1.3
    • Constructor Detail

      • AbstractJaxxMojo

        public AbstractJaxxMojo()
    • Method Detail

      • getTargetDirectory

        public abstract File getTargetDirectory()
      • setTargetDirectory

        public abstract void setTargetDirectory​(File targetDirectory)
      • checkPackaging

        protected boolean checkPackaging()
        Overrides:
        checkPackaging in class org.nuiton.plugin.AbstractPlugin
      • getProject

        public org.apache.maven.project.MavenProject getProject()
        Specified by:
        getProject in interface org.nuiton.plugin.Plugin
      • isVerbose

        public boolean isVerbose()
        Specified by:
        isVerbose in interface org.nuiton.plugin.Plugin
      • setProject

        public void setProject​(org.apache.maven.project.MavenProject project)
        Specified by:
        setProject in interface org.nuiton.plugin.Plugin
      • setVerbose

        public void setVerbose​(boolean verbose)
        Specified by:
        setVerbose in interface org.nuiton.plugin.Plugin
      • getEncoding

        public String getEncoding()
        Specified by:
        getEncoding in interface org.nuiton.plugin.PluginWithEncoding
      • setEncoding

        public void setEncoding​(String encoding)
        Specified by:
        setEncoding in interface org.nuiton.plugin.PluginWithEncoding
      • isForce

        public boolean isForce()
      • setForce

        public void setForce​(boolean force)
      • getLastModified

        protected Long getLastModified​(File dir)