org.nuiton.jaxx.plugin
Class GenerateHelpSearchMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by org.nuiton.jaxx.plugin.AbstractJaxxMojo
              extended by org.nuiton.jaxx.plugin.AbstractGenerateHelpMojo
                  extended by 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 Class Summary
 
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.jaxx.plugin.AbstractGenerateHelpMojo
generateSearch, locales
 
Fields inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo
generateHelp
 
Fields inherited from class org.nuiton.plugin.AbstractPlugin
skipAfterInitMessage
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenerateHelpSearchMojo()
           
 
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
 

Field Detail

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
Constructor Detail

GenerateHelpSearchMojo

public GenerateHelpSearchMojo()
Method Detail

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 treate
isDefaultLocale - true if given locale is de the default locale
source - where are stored help files for the given locale
localePath - 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.