|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.jaxx.plugin.AbstractJaxxMojo
org.nuiton.jaxx.plugin.AbstractGenerateHelpMojo
org.nuiton.jaxx.plugin.GenerateHelpFilesMojo
public class GenerateHelpFilesMojo
Mojo to generate javax help files for your project.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected static java.lang.String |
AUTOREMOVE_LINE
|
protected java.io.File |
contentTemplate
The template used to generate helpset content file. |
protected java.util.Properties |
helpIds
The help ids discovered. |
protected java.lang.String |
helpsetName
The name of the helpset to generate. |
protected java.io.File |
helpsetTemplate
The template used to generate helpset file. |
protected java.io.File |
idsFile
|
protected java.lang.String |
indexFileName
|
protected java.io.File |
indexTemplate
The template used to generate helpset index file. |
protected java.lang.String |
mapFileName
|
protected java.io.File |
mapTemplate
The template used to generate helpset map file. |
protected java.io.File |
outputHelp
The directory where to create or update help files. |
protected java.lang.String |
tocFileName
|
protected java.io.File |
tocTemplate
The template used to generate helpset toc file. |
protected int |
touchedFiles
|
| Fields inherited from class org.nuiton.jaxx.plugin.AbstractGenerateHelpMojo |
|---|
generateSearch, locales |
| Fields inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
|---|
generateHelp |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
GenerateHelpFilesMojo()
|
|
| Method Summary | |
|---|---|
protected boolean |
checkSkip()
|
protected void |
doActionForLocale(java.util.Locale locale,
boolean isDefaultLocale,
java.io.File localizedTarget,
java.lang.String localePath)
Do the action for the given locale. |
protected void |
doGen(java.io.File template,
java.io.File f,
java.util.Properties env)
|
protected int |
generateContentFiles(java.io.File localizedTarget,
java.util.Properties env,
java.lang.String localePath)
|
protected boolean |
generateHelpsetFile(java.io.File file,
java.util.Properties env)
|
protected NodeItem |
generateIndexFile(java.io.File file,
java.util.Properties env)
|
protected java.util.Properties |
generateMapFile(java.io.File file,
java.util.Properties env)
|
protected NodeItem |
generateTocFile(java.io.File file,
java.util.Properties env)
|
java.io.File |
getTargetDirectory()
|
void |
init()
|
protected void |
postDoAction()
Call back after doing all stuff for all locales declared |
protected org.nuiton.plugin.VelocityTemplateGenerator |
prepareGenerator(java.io.File template)
|
void |
setTargetDirectory(java.io.File targetDirectory)
|
| 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 |
|---|
checkPackaging, getEncoding, getLastModified, getProject, isForce, isVerbose, setEncoding, setForce, setProject, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, 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 |
|---|
protected static final java.lang.String AUTOREMOVE_LINE
protected java.io.File outputHelp
protected java.lang.String helpsetName
protected java.io.File helpsetTemplate
protected java.io.File mapTemplate
protected java.io.File indexTemplate
protected java.io.File tocTemplate
protected java.io.File contentTemplate
protected java.lang.String mapFileName
protected java.lang.String indexFileName
protected java.lang.String tocFileName
protected int touchedFiles
protected java.io.File idsFile
protected java.util.Properties helpIds
| Constructor Detail |
|---|
public GenerateHelpFilesMojo()
| Method Detail |
|---|
public java.io.File getTargetDirectory()
getTargetDirectory in class AbstractJaxxMojopublic void setTargetDirectory(java.io.File targetDirectory)
setTargetDirectory in class AbstractJaxxMojo
public void init()
throws java.lang.Exception
init in class AbstractGenerateHelpMojojava.lang.Exceptionprotected boolean checkSkip()
checkSkip in class AbstractGenerateHelpMojoprotected void postDoAction()
AbstractGenerateHelpMojo
postDoAction in class AbstractGenerateHelpMojo
protected void doActionForLocale(java.util.Locale locale,
boolean isDefaultLocale,
java.io.File localizedTarget,
java.lang.String localePath)
throws java.lang.Exception
AbstractGenerateHelpMojo
doActionForLocale 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).
java.lang.Exception - if any pb
protected int generateContentFiles(java.io.File localizedTarget,
java.util.Properties env,
java.lang.String localePath)
throws java.lang.Exception
java.lang.Exception
protected boolean generateHelpsetFile(java.io.File file,
java.util.Properties env)
throws java.lang.Exception
java.lang.Exception
protected java.util.Properties generateMapFile(java.io.File file,
java.util.Properties env)
throws java.lang.Exception
java.lang.Exception
protected NodeItem generateIndexFile(java.io.File file,
java.util.Properties env)
throws java.lang.Exception
java.lang.Exception
protected NodeItem generateTocFile(java.io.File file,
java.util.Properties env)
throws java.lang.Exception
java.lang.Exception
protected void doGen(java.io.File template,
java.io.File f,
java.util.Properties env)
throws java.lang.Exception
java.lang.Exception
protected org.nuiton.plugin.VelocityTemplateGenerator prepareGenerator(java.io.File template)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||