@Mojo(name="generate-help-search",
defaultPhase=PROCESS_SOURCES,
requiresProject=true,
requiresDependencyResolution=COMPILE)
@Execute(goal="generate-help-files")
public class GenerateHelpSearchMojo
extends AbstractGenerateHelpMojo
AbstractJaxxMojo.JaxxFileUpdater| Modifier and Type | Field and Description |
|---|---|
protected File |
inputHelp
The directory where to pick content files to generate the index.
|
protected File |
outputHelpSearch
The directory where to create or update help search index files.
|
protected String |
timestamp |
generateSearch, localesgenerateHelp| Constructor and Description |
|---|
GenerateHelpSearchMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSkip() |
protected void |
doActionForLocale(Locale locale,
boolean isDefaultLocale,
File localizedTarget,
String localePath)
Do the action for the given locale.
|
protected void |
generateSearchIndex(File source,
File target,
Locale 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, setPluginContext@Parameter(property="jaxx.outputHelpSearch",
defaultValue="${project.basedir}/target/generated-sources/help",
required=true)
protected File outputHelpSearch
@Parameter(property="jaxx.inputHelp",
defaultValue="${project.basedir}/src/main/help",
required=true)
protected File inputHelp
protected String timestamp
public void init()
throws Exception
init in class AbstractGenerateHelpMojoExceptionpublic File getTargetDirectory()
getTargetDirectory in class AbstractJaxxMojopublic void setTargetDirectory(File targetDirectory)
setTargetDirectory in class AbstractJaxxMojoprotected boolean checkSkip()
checkSkip in class AbstractGenerateHelpMojoprotected void doActionForLocale(Locale locale, boolean isDefaultLocale, File localizedTarget, String localePath) throws Exception
AbstractGenerateHelpMojodoActionForLocale in class AbstractGenerateHelpMojolocale - the locale to treateisDefaultLocale - true if given locale is de the default
localelocalizedTarget - 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 preDoAction()
AbstractGenerateHelpMojopreDoAction in class AbstractGenerateHelpMojoprotected void postDoAction()
AbstractGenerateHelpMojopostDoAction in class AbstractGenerateHelpMojoCopyright © 2008–2018 Ultreia.io. All rights reserved.