|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.soebes.maven.plugins.dmg.AbstractDoxygenConfigurationMojo
com.soebes.maven.plugins.dmg.AbstractDoxygenMojo
public abstract class AbstractDoxygenMojo
This abstract class contains all configurable parameters for the doxygen plugin.
| Field Summary | |
|---|---|
private java.io.File |
basedir
This is the basedir. |
private java.lang.String |
executable
This defines the name and/or the absolute path to he doxygen executable. |
private java.io.File |
outputDirectory
The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) base path where the generated documentation will be put. |
private org.apache.maven.execution.MavenSession |
session
The current build session instance. |
private boolean |
skip
This is the skip parameter to simply skip the doxygen generation part. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractDoxygenMojo()
|
|
| Method Summary | |
|---|---|
private void |
addConfiguration(java.io.PrintWriter config,
DoxygenParameters key,
boolean value)
This is called for boolean configuration items. |
private void |
addConfiguration(java.io.PrintWriter config,
DoxygenParameters key,
java.lang.Integer value)
This is called for integer configuration items. |
private void |
addConfiguration(java.io.PrintWriter config,
DoxygenParameters key,
java.lang.String value)
This is called for String configuration items. |
private void |
addConfiguration(java.io.PrintWriter config,
java.lang.String desc,
java.lang.String key,
java.lang.String value)
This will write all kind of configuration items into the configuration file and will format the file. |
java.io.File |
buildConfigurationFile()
This method will get an existing configuration file for doxygen or will create a new one with the configured parameters. |
void |
buildConfigurationFile(java.io.File config)
This method will create the configuration for calling doxygen. |
protected void |
executeReport(java.util.Locale unusedLocale)
|
java.io.File |
getBasedir()
|
private java.lang.String |
getExecutablePath()
This will check if the given information for the doxygen executable is enough. |
protected java.io.File |
getOutputDirectory()
|
private org.apache.maven.toolchain.Toolchain |
getToolchain()
This code is lent from http://fisheye.codehaus.org/browse/~raw,r=8882/mojo/trunk/mojo/exec-maven-plugin/src/main/java/org/codehaus/mojo/exec/ExecMojo.java |
boolean |
isSkip()
|
void |
setBasedir(java.io.File basedir)
|
void |
setOutputDirectory(java.io.File outputDirectory)
|
void |
setSkip(boolean skip)
|
| 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 |
|---|
execute |
| Field Detail |
|---|
private java.io.File outputDirectory
private java.lang.String executable
private org.apache.maven.execution.MavenSession session
private java.io.File basedir
private boolean skip
| Constructor Detail |
|---|
public AbstractDoxygenMojo()
| Method Detail |
|---|
protected java.io.File getOutputDirectory()
private org.apache.maven.toolchain.Toolchain getToolchain()
private java.lang.String getExecutablePath()
public java.io.File buildConfigurationFile()
throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportException
public void buildConfigurationFile(java.io.File config)
throws org.apache.maven.reporting.MavenReportException
config - The configuration.
org.apache.maven.reporting.MavenReportException
private void addConfiguration(java.io.PrintWriter config,
DoxygenParameters key,
boolean value)
config - The configuration where to write to.key - The configuration parameter name with it's default values etc.value - The reals value, base on the Plugin configuration.
private void addConfiguration(java.io.PrintWriter config,
DoxygenParameters key,
java.lang.Integer value)
config - The configuration where to write to.key - The configuration parameter name with it's default values etc.value - The reals value, base on the Plugin configuration.
private void addConfiguration(java.io.PrintWriter config,
DoxygenParameters key,
java.lang.String value)
config - The configuration where to write to.key - The configuration parameter name with it's default values etc.value - The reals value, base on the Plugin configuration.
private void addConfiguration(java.io.PrintWriter config,
java.lang.String desc,
java.lang.String key,
java.lang.String value)
config - The output file.desc - The description of the item.key - The name of the itemvalue - The value of the item.
protected void executeReport(java.util.Locale unusedLocale)
throws org.apache.maven.reporting.MavenReportException
unusedLocale - the wanted locale (actually unused).
org.apache.maven.reporting.MavenReportException - if anypublic void setBasedir(java.io.File basedir)
public java.io.File getBasedir()
public void setOutputDirectory(java.io.File outputDirectory)
public boolean isSkip()
public void setSkip(boolean skip)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||