@Mojo(name="generate-help-ids",
defaultPhase=PROCESS_SOURCES,
requiresProject=true)
public class GenerateHelpIdsMojo
extends AbstractGenerateHelpMojo
AbstractJaxxMojo.JaxxFileUpdater| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
helpIds
help ids to react.
|
static String |
INPUT_FILENAME_FORMAT |
static String |
INPUT_FILENAME_FULL_FORMAT |
protected File |
inputHelpDirectory
Directory where to merge (create) input files.
|
protected String |
inputHelpFilenamePrefix
Prefix of input files.
|
protected boolean |
mergeIdsToInput
Flag to merge ids into input directory.
|
protected boolean |
strictMode
Flag to remove obsolete ids into input files.
|
generateSearch, localesgenerateHelp| Constructor and Description |
|---|
GenerateHelpIdsMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSkip() |
protected void |
doActionForLocale(Locale locale,
boolean isDefaultLocale,
File source,
String localePath)
Do the action for the given locale.
|
File |
getTargetDirectory() |
void |
init() |
protected void |
postDoAction()
Call back after doing all stuff for all locales declared
|
protected void |
preDoAction()
Call back before doing all stuff for all locales declared
|
void |
setTargetDirectory(File targetDirectory) |
cleanHelpIdsStore, doAction, getHelpIdsFilename, getHelpIdsStoreFile, getMergeHelpIdsFilename, getMergeHelpIdsStoreFile, getOutputHelpIds, loadHelpIds, removeQuote, setHelpIdsFilename, setMergeHelpIdsFilename, setOutputHelpIds, storeHelpIdscheckPackaging, getEncoding, getLastModified, getProject, isForce, isVerbose, setEncoding, setForce, setProject, 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, setPluginContextpublic static final String INPUT_FILENAME_FULL_FORMAT
public static final String INPUT_FILENAME_FORMAT
@Parameter(property="jaxx.mergeIdsToInput",
defaultValue="false",
required=true)
protected boolean mergeIdsToInput
@Parameter(property="jaxx.strictMode",
defaultValue="false",
required=true)
protected boolean strictMode
jaxx.force property to get all ids of any jaxx files
detected, otherwise you could loose some data. USE WITH CAUTION.
Note: Only used when mergeIdsToInput parameter
is on.@Parameter(property="jaxx.inputHelpDirectory",
defaultValue="src/main/help",
required=true)
protected File inputHelpDirectory
mergeIdsToInput parameter
is on.@Parameter(property="jaxx.inputHelpFilenamePrefix",
defaultValue="helpMapping",
required=true)
protected String inputHelpFilenamePrefix
-locale.properties will be added to each
generated file (example: helpMapping-fr_FR.properties).
Note: Only used when mergeIdsToInput parameter
is on.public void init()
throws Exception
init in class AbstractGenerateHelpMojoExceptionprotected boolean checkSkip()
checkSkip in class AbstractGenerateHelpMojoprotected void preDoAction()
throws IOException
AbstractGenerateHelpMojopreDoAction in class AbstractGenerateHelpMojoIOExceptionprotected void doActionForLocale(Locale locale, boolean isDefaultLocale, File source, String localePath) throws Exception
AbstractGenerateHelpMojodoActionForLocale in class AbstractGenerateHelpMojolocale - 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 void postDoAction()
AbstractGenerateHelpMojopostDoAction in class AbstractGenerateHelpMojopublic File getTargetDirectory()
getTargetDirectory in class AbstractJaxxMojopublic void setTargetDirectory(File targetDirectory)
setTargetDirectory in class AbstractJaxxMojoCopyright © 2008–2019 Ultreia.io. All rights reserved.