|
|||||||||
| 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.GenerateHelpMojo
public class GenerateHelpMojo
Mojo to generate javax help stuff for your project. HelpIds should have been discovered by the JaxxMojo.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected java.io.File |
contentTemplate
The template used to generate helpset content file. |
protected boolean |
generateSearch
Flag to generate the search index. |
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 |
indexTemplate
The template used to generate helpset index file. |
protected java.lang.String |
locales
The locales to generate for help, seprated by comma. |
protected java.io.File |
mapTemplate
The template used to generate helpset map file. |
protected java.io.File |
outHelp
The directory where to generate help files. |
protected java.io.File |
tocTemplate
The template used to generate helpset toc file. |
| Fields inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
|---|
encoding, helpIdsStore, project, verbose |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
GenerateHelpMojo()
|
|
| Method Summary | |
|---|---|
void |
doAction()
|
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 void |
generateSearchIndex(java.io.File localizedTarget,
java.util.Locale locale)
|
protected NodeItem |
generateTocFile(java.io.File file,
java.util.Properties env)
|
java.io.File |
getTargetDirectory()
|
boolean |
init()
|
protected org.nuiton.plugin.VelocityTemplateGenerator |
prepareGenerator(java.io.File template)
|
void |
setTargetDirectory(java.io.File targetDirectory)
|
| Methods inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
|---|
checkPackaging, getEncoding, getHelpIdsStore, getProject, isVerbose, setEncoding, setHelpIdsStore, 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 |
|---|
protected java.io.File outHelp
protected java.lang.String locales
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 boolean generateSearch
| Constructor Detail |
|---|
public GenerateHelpMojo()
| Method Detail |
|---|
public boolean init()
throws java.lang.Exception
init in class org.nuiton.plugin.AbstractPluginjava.lang.Exception
public void doAction()
throws java.lang.Exception
doAction in class org.nuiton.plugin.AbstractPluginjava.lang.Exceptionpublic java.io.File getTargetDirectory()
getTargetDirectory in class AbstractJaxxMojopublic void setTargetDirectory(java.io.File targetDirectory)
setTargetDirectory in class AbstractJaxxMojo
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 void generateSearchIndex(java.io.File localizedTarget,
java.util.Locale locale)
throws java.lang.IllegalArgumentException,
java.io.IOException,
java.lang.reflect.InvocationTargetException,
java.lang.SecurityException,
java.lang.IllegalAccessException,
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.io.IOException
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
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 | ||||||||