org.nuiton.jaxx.plugin
Class AbstractGenerateHelpMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.jaxx.plugin.AbstractJaxxMojo
org.nuiton.jaxx.plugin.AbstractGenerateHelpMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.plugin.Plugin
- Direct Known Subclasses:
- GenerateHelpFilesMojo, GenerateHelpIdsMojo, GenerateHelpMojo, GenerateHelpSearchMojo
public abstract class AbstractGenerateHelpMojo
- extends AbstractJaxxMojo
Abstract Mojo to generate help stuff.
- Since:
- 2.0.0
- Author:
- chemit
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
org.nuiton.plugin.Plugin.Packaging |
|
Field Summary |
protected boolean |
generateSearch
Flag to generate the search index. |
protected java.lang.String |
locales
The locales to generate for help, separeted by comma. |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
addResourceDir, addResourceDir, addTestResourceDir, checkPackaging, createDirectoryIfNecessary, getEncoding, getLastModified, getProject, getTargetDirectory, isForce, isVerbose, setEncoding, setForce, setProject, setTargetDirectory, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, checkResource, checkRunOnceDone, copyFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, writeFile |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
getLog, setLog |
locales
protected java.lang.String locales
- The locales to generate for help, separeted by comma.
The first locale given is the default locale.
- Since:
- 2.0.0
- Is defined by:
- expression:
- ${jaxx.locales}
- Is required.
generateSearch
protected boolean generateSearch
- Flag to generate the search index.
- Since:
- 1.3
- Is defined by:
- expression:
- ${jaxx.generateSearch}
- default-value:
- true
- Is required.
AbstractGenerateHelpMojo
public AbstractGenerateHelpMojo()
doActionForLocale
protected abstract void doActionForLocale(java.util.Locale locale,
boolean isDefaultLocale,
java.io.File source,
java.lang.String localePath)
throws java.lang.Exception
- Do the action for the given locale.
- Parameters:
locale - the locale to treateisDefaultLocale - true if given locale is de the default localesource - where are stored help files for the given localelocalePath - the locale path to use (is default if given locale is default).
- Throws:
java.lang.Exception - if any pb
postDoAction
protected abstract void postDoAction()
- Call back after doing all stuff for all locales declared
init
protected boolean init()
throws java.lang.Exception
- Specified by:
init in class org.nuiton.plugin.AbstractPlugin
- Throws:
java.lang.Exception
doAction
protected void doAction()
throws java.lang.Exception
- Specified by:
doAction in class org.nuiton.plugin.AbstractPlugin
- Throws:
java.lang.Exception
skipAction
protected boolean skipAction()
getOutputHelpIds
public java.io.File getOutputHelpIds()
setOutputHelpIds
public void setOutputHelpIds(java.io.File outputHelpIds)
getHelpIdsStoreFile
public java.io.File getHelpIdsStoreFile()
getMergeHelpIdsStoreFile
public java.io.File getMergeHelpIdsStoreFile()
getHelpIdsFilename
public java.lang.String getHelpIdsFilename()
setHelpIdsFilename
public void setHelpIdsFilename(java.lang.String helpIdsFilename)
getMergeHelpIdsFilename
public java.lang.String getMergeHelpIdsFilename()
setMergeHelpIdsFilename
public void setMergeHelpIdsFilename(java.lang.String mergeHelpIdsFilename)
cleanHelpIdsStore
protected void cleanHelpIdsStore()
throws java.io.IOException
- Throws:
java.io.IOException
loadHelpIds
protected java.util.Set<java.lang.String> loadHelpIds(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
storeHelpIds
protected void storeHelpIds(java.io.File file,
java.util.Set<java.lang.String> ids)
throws java.io.IOException
- Throws:
java.io.IOException
removeQuote
protected java.lang.String removeQuote(java.lang.String txt)
Copyright © 2008-2009 CodeLutin. All Rights Reserved.