public abstract class AbstractGenerateHelpMojo extends AbstractJaxxMojo
AbstractJaxxMojo.JaxxFileUpdater| Modifier and Type | Field and Description |
|---|---|
protected boolean |
generateSearch
Flag to generate the search index.
|
protected String |
locales
The locales to generate for help, separeted by comma.
|
generateHelp| Constructor and Description |
|---|
AbstractGenerateHelpMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSkip() |
protected void |
cleanHelpIdsStore() |
protected void |
doAction() |
protected abstract void |
doActionForLocale(Locale locale,
boolean isDefaultLocale,
File source,
String localePath)
Do the action for the given locale.
|
String |
getHelpIdsFilename() |
File |
getHelpIdsStoreFile() |
String |
getMergeHelpIdsFilename() |
File |
getMergeHelpIdsStoreFile() |
File |
getOutputHelpIds() |
protected void |
init() |
protected Set<String> |
loadHelpIds(File file) |
protected abstract void |
postDoAction()
Call back after doing all stuff for all locales declared
|
protected abstract void |
preDoAction()
Call back before doing all stuff for all locales declared
|
protected String |
removeQuote(String txt) |
void |
setHelpIdsFilename(String helpIdsFilename) |
void |
setMergeHelpIdsFilename(String mergeHelpIdsFilename) |
void |
setOutputHelpIds(File outputHelpIds) |
protected void |
storeHelpIds(File file,
Set<String> ids) |
checkPackaging, getEncoding, getLastModified, getProject, getTargetDirectory, isForce, isVerbose, setEncoding, setForce, setProject, setTargetDirectory, setVerboseacceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkEncoding, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContext@Parameter(property="jaxx.locales",
required=true)
protected String locales
@Parameter(property="jaxx.generateSearch",
defaultValue="true",
required=true)
protected boolean generateSearch
protected abstract void doActionForLocale(Locale locale, boolean isDefaultLocale, File source, String localePath) throws Exception
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).Exception - if any pbprotected abstract void postDoAction()
protected abstract void preDoAction()
throws IOException
IOExceptionprotected void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginExceptionprotected boolean checkSkip()
checkSkip in class org.nuiton.plugin.AbstractPluginprotected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionpublic File getOutputHelpIds()
public void setOutputHelpIds(File outputHelpIds)
public File getHelpIdsStoreFile()
public File getMergeHelpIdsStoreFile()
public String getHelpIdsFilename()
public void setHelpIdsFilename(String helpIdsFilename)
public String getMergeHelpIdsFilename()
public void setMergeHelpIdsFilename(String mergeHelpIdsFilename)
protected void cleanHelpIdsStore()
throws IOException
IOExceptionprotected Set<String> loadHelpIds(File file) throws IOException
IOExceptionprotected void storeHelpIds(File file, Set<String> ids) throws IOException
IOExceptionCopyright © 2008–2017 Ultreia.io. All rights reserved.