org.nuiton.jaxx.plugin
Class GenerateHelpIdsMojo

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.GenerateHelpIdsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.plugin.Plugin

public class GenerateHelpIdsMojo
extends AbstractGenerateHelpMojo

Generate the help ids files from the previous jaxx generation. Created: 22 déc. 2009

Since:
2.0.0
Version:
$Revision: 1699 $

Mise a jour: $Date: 2009-12-23 09:58:07 +0100 (mer., 23 déc. 2009) $ par : $Author: tchemit $

Author:
Tony Chemit Copyright Code Lutin, chemit
Is defined by the goal name:
generate-help-ids
Is bound to the specified phase of the standard build lifecycle:
process-sources
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
 
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
GenerateHelpIdsMojo()
           
 
Method Summary
 void doAction()
           
protected  void doActionForLocale(java.util.Locale locale, boolean isDefaultLocale, java.io.File source, java.lang.String localePath)
          Do the action for the given 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)
           
 
Methods inherited from class org.nuiton.jaxx.plugin.AbstractGenerateHelpMojo
cleanHelpIdsStore, getHelpIdsFilename, getHelpIdsStoreFile, getMergeHelpIdsFilename, getMergeHelpIdsStoreFile, getOutputHelpIds, loadHelpIds, removeQuote, setHelpIdsFilename, setMergeHelpIdsFilename, setOutputHelpIds, skipAction, 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
 

Constructor Detail

GenerateHelpIdsMojo

public GenerateHelpIdsMojo()
Method Detail

init

public boolean init()
             throws java.lang.Exception
Overrides:
init in class AbstractGenerateHelpMojo
Throws:
java.lang.Exception

doAction

public void doAction()
              throws java.lang.Exception
Overrides:
doAction in class AbstractGenerateHelpMojo
Throws:
java.lang.Exception

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

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


Copyright © 2008-2009 CodeLutin. All Rights Reserved.