Class AbstractGenerateHelpMojo

    • Field Detail

      • locales

        @Parameter(property="jaxx.locales",
                   required=true)
        protected String locales
        The locales to generate for help, separeted by comma. The first locale given is the default locale.
        Since:
        2.0.0
      • generateSearch

        @Parameter(property="jaxx.generateSearch",
                   defaultValue="true",
                   required=true)
        protected boolean generateSearch
        Flag to generate the search index.
        Since:
        1.3
    • Constructor Detail

      • AbstractGenerateHelpMojo

        public AbstractGenerateHelpMojo()
    • Method Detail

      • doActionForLocale

        protected abstract void doActionForLocale​(Locale locale,
                                                  boolean isDefaultLocale,
                                                  File source,
                                                  String localePath)
                                           throws Exception
        Do the action for the given locale.
        Parameters:
        locale - the locale to treate
        isDefaultLocale - true if given locale is de the default locale
        source - where are stored help files for the given locale
        localePath - the locale path to use (is default if given locale is default).
        Throws:
        Exception - if any pb
      • postDoAction

        protected abstract void postDoAction()
        Call back after doing all stuff for all locales declared
      • preDoAction

        protected abstract void preDoAction()
                                     throws IOException
        Call back before doing all stuff for all locales declared
        Throws:
        IOException
      • init

        protected void init()
                     throws Exception
        Specified by:
        init in class org.nuiton.plugin.AbstractPlugin
        Throws:
        Exception
      • checkSkip

        protected boolean checkSkip()
        Overrides:
        checkSkip in class org.nuiton.plugin.AbstractPlugin
      • doAction

        protected void doAction()
                         throws Exception
        Specified by:
        doAction in class org.nuiton.plugin.AbstractPlugin
        Throws:
        Exception
      • getOutputHelpIds

        public File getOutputHelpIds()
      • setOutputHelpIds

        public void setOutputHelpIds​(File outputHelpIds)
      • getHelpIdsStoreFile

        public File getHelpIdsStoreFile()
      • getMergeHelpIdsStoreFile

        public File getMergeHelpIdsStoreFile()
      • getHelpIdsFilename

        public String getHelpIdsFilename()
      • setHelpIdsFilename

        public void setHelpIdsFilename​(String helpIdsFilename)
      • getMergeHelpIdsFilename

        public String getMergeHelpIdsFilename()
      • setMergeHelpIdsFilename

        public void setMergeHelpIdsFilename​(String mergeHelpIdsFilename)
      • removeQuote

        protected String removeQuote​(String txt)