|
|||||||||
| 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 String |
AUTOREMOVE_LINE
|
protected File |
contentTemplate
The template used to generate helpset content file. |
protected Properties |
helpIds
The help ids discovered. |
protected String |
helpsetName
The name of the helpset to generate. |
protected File |
helpsetTemplate
The template used to generate helpset file. |
protected File |
idsFile
|
protected String |
indexFileName
|
protected File |
indexTemplate
The template used to generate helpset index file. |
protected String |
mapFileName
|
protected File |
mapTemplate
The template used to generate helpset map file. |
protected File |
outputHelp
The directory where to create or update help files. |
protected String |
tocFileName
|
protected 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(Locale locale,
boolean isDefaultLocale,
File localizedTarget,
String localePath)
Do the action for the given locale. |
protected void |
doGen(File template,
File f,
Properties env)
|
protected int |
generateContentFiles(File localizedTarget,
Properties env,
String localePath)
|
protected boolean |
generateHelpsetFile(File file,
Properties env)
|
protected NodeItem |
generateIndexFile(File file,
Properties env)
|
protected Properties |
generateMapFile(File file,
Properties env)
|
protected NodeItem |
generateTocFile(File file,
Properties env)
|
File |
getTargetDirectory()
|
void |
init()
|
protected void |
postDoAction()
Call back after doing all stuff for all locales declared |
protected org.nuiton.plugin.VelocityTemplateGenerator |
prepareGenerator(File template)
|
void |
setTargetDirectory(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 String AUTOREMOVE_LINE
protected File outputHelp
protected String helpsetName
protected File helpsetTemplate
protected File mapTemplate
protected File indexTemplate
protected File tocTemplate
protected File contentTemplate
protected String mapFileName
protected String indexFileName
protected String tocFileName
protected int touchedFiles
protected File idsFile
protected Properties helpIds
| Constructor Detail |
|---|
public GenerateHelpFilesMojo()
| Method Detail |
|---|
public File getTargetDirectory()
getTargetDirectory in class AbstractJaxxMojopublic void setTargetDirectory(File targetDirectory)
setTargetDirectory in class AbstractJaxxMojo
public void init()
throws Exception
init in class AbstractGenerateHelpMojoExceptionprotected boolean checkSkip()
checkSkip in class AbstractGenerateHelpMojoprotected void postDoAction()
AbstractGenerateHelpMojo
postDoAction in class AbstractGenerateHelpMojo
protected void doActionForLocale(Locale locale,
boolean isDefaultLocale,
File localizedTarget,
String localePath)
throws 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).
Exception - if any pb
protected int generateContentFiles(File localizedTarget,
Properties env,
String localePath)
throws Exception
Exception
protected boolean generateHelpsetFile(File file,
Properties env)
throws Exception
Exception
protected Properties generateMapFile(File file,
Properties env)
throws Exception
Exception
protected NodeItem generateIndexFile(File file,
Properties env)
throws Exception
Exception
protected NodeItem generateTocFile(File file,
Properties env)
throws Exception
Exception
protected void doGen(File template,
File f,
Properties env)
throws Exception
Exception
protected org.nuiton.plugin.VelocityTemplateGenerator prepareGenerator(File template)
throws Exception
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||