org.nuiton.jaxx.plugin
Class GenerateHelpSearchMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.jaxx.plugin.AbstractJaxxMojo
org.nuiton.jaxx.plugin.AbstractGenerateHelpMojo
org.nuiton.jaxx.plugin.GenerateHelpSearchMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.plugin.Plugin
public class GenerateHelpSearchMojo
- extends AbstractGenerateHelpMojo
Generate the javax search index help for your project.
The current files should be generated always in a generated directory and not in
your src directories (this is mainly binary files not to be stored in scm system)...
- Since:
- 2.0.0
- Author:
- chemit
- Is defined to be executed in:
- goal:
- generate-help-files
- Is defined by the goal name:
- generate-help-search
- Is bound to the specified phase of the standard build lifecycle:
- process-sources
- Requires the dependencies in this specified scope:
- compile
- Requires a Maven project to run:
- true
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
org.nuiton.plugin.Plugin.Packaging |
|
Field Summary |
protected java.io.File |
outputHelpSearch
The directory where to create or update help search index files. |
protected java.lang.String |
timestamp
|
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
protected void |
doActionForLocale(java.util.Locale locale,
boolean isDefaultLocale,
java.io.File source,
java.lang.String localePath)
Do the action for the given locale. |
protected void |
generateSearchIndex(java.io.File source,
java.io.File target,
java.util.Locale locale)
|
java.io.File |
getTargetDirectory()
|
boolean |
init()
|
protected void |
postDoAction()
Call back after doing all stuff for all locales declared |
void |
setTargetDirectory(java.io.File targetDirectory)
|
protected boolean |
skipAction()
|
| Methods inherited from class org.nuiton.jaxx.plugin.AbstractGenerateHelpMojo |
cleanHelpIdsStore, doAction, getHelpIdsFilename, getHelpIdsStoreFile, getMergeHelpIdsFilename, getMergeHelpIdsStoreFile, getOutputHelpIds, loadHelpIds, removeQuote, setHelpIdsFilename, setMergeHelpIdsFilename, setOutputHelpIds, storeHelpIds |
| Methods inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
addResourceDir, addResourceDir, addTestResourceDir, checkPackaging, createDirectoryIfNecessary, getEncoding, getLastModified, getProject, isForce, isVerbose, setEncoding, setForce, setProject, 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 |
outputHelpSearch
protected java.io.File outputHelpSearch
- The directory where to create or update help search index files.
- Since:
- 2.0.0
- Is defined by:
- expression:
- ${jaxx.outputHelpSearch}
- default-value:
- ${project.basedir}/target/generated-sources/help
- Is required.
timestamp
protected java.lang.String timestamp
GenerateHelpSearchMojo
public GenerateHelpSearchMojo()
init
public boolean init()
throws java.lang.Exception
- Overrides:
init in class AbstractGenerateHelpMojo
- Throws:
java.lang.Exception
getTargetDirectory
public java.io.File getTargetDirectory()
- Specified by:
getTargetDirectory in class AbstractJaxxMojo
setTargetDirectory
public void setTargetDirectory(java.io.File targetDirectory)
- Specified by:
setTargetDirectory in class AbstractJaxxMojo
skipAction
protected boolean skipAction()
- Overrides:
skipAction in class AbstractGenerateHelpMojo
doActionForLocale
protected void doActionForLocale(java.util.Locale locale,
boolean isDefaultLocale,
java.io.File source,
java.lang.String localePath)
throws java.lang.Exception
- Description copied from class:
AbstractGenerateHelpMojo
- Do the action for the given locale.
- Specified by:
doActionForLocale in class AbstractGenerateHelpMojo
- 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 void postDoAction()
- Description copied from class:
AbstractGenerateHelpMojo
- Call back after doing all stuff for all locales declared
- Specified by:
postDoAction in class AbstractGenerateHelpMojo
generateSearchIndex
protected void generateSearchIndex(java.io.File source,
java.io.File target,
java.util.Locale locale)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2008-2009 CodeLutin. All Rights Reserved.