|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo net.sf.jfxdplugin.AbstractJavafxdocMojo
public abstract class AbstractJavafxdocMojo
Base class for the Javafxdoc mojo. This class contains the majority of the mojo functionality.
Based on the Maven Javadoc Plugin version 2.6.
Field Summary | |
---|---|
protected static String |
DEBUG_JAVAFXDOC_SCRIPT_NAME
The Javafxdoc script file name when the debug parameter is
on, i.e. |
static Properties |
DEFAULT_JAVA_API_LINKS
The default Javafxdoc API URLs according to the Sun/Oracle API Specifications. |
protected static float |
DEFAULT_JAVAFX_VERSION
The default JavaFX version (1.0) to use if no other viable version can be found. |
protected static String |
FILES_FILE_NAME
The files file name in the output directory when calling
javafxdoc.exe(or .sh) [@options] [packagenames] [sourcefiles]
[@files] . |
protected static String |
OPTIONS_FILE_NAME
The options file name in the output directory when calling
javafxdoc.exe(or .sh) [@options] [packagenames] [sourcefiles]
[@files] . |
protected static float |
SINCE_JAVAFXDOC_1_3
For Javafxdoc options that appear since JavaFX 1.3. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractJavafxdocMojo()
|
Method Summary | |
---|---|
protected boolean |
canGenerateReport(List<String> files)
Method that indicates whether the javafxdoc can be generated or not. |
protected void |
executeReport()
Runs the report for the given parameters. |
protected String |
formatMessage(String message,
Object... args)
Formats the messages from the resource bundle with the given arguments. |
String[] |
getAdditionalJOptions()
Returns the additional -J option value. |
String[] |
getAdditionalXslOptions()
Returns the additional Xsl options value. |
String |
getBootclasspath()
Returns the boot class path. |
protected ResourceBundle |
getBundle(Locale specificLocale)
Gets the resource bundle for the specified locale. |
String |
getDoclet()
Returns the doclet for HTML generation. |
String |
getDocletPath()
Returns the path to the doclet for HTML generation. |
String |
getEncoding()
Returns the output encoding. |
String |
getExcludePackageNames()
Returns the list of package names to exclude. |
String |
getExtdirs()
Returns the extension directories. |
String |
getExtracss()
Returns the extra CSS file to use. |
String |
getExtrajs()
Returns the extra JavaScript file to use. |
protected List<String> |
getFiles(List<String> sourcePaths)
Method to get the files on the specified source paths. |
File[] |
getInputFiles()
Returns the XML input file. |
String |
getJavafxdocExecutable()
Returns the location of the Javafxdoc executable. |
protected float |
getJavafxdocVersion()
Returns the javafxdoc tool version. |
String |
getLocale()
Returns the documentation locale. |
protected Locale |
getLocaleObject()
Constructs a Locale object from the specified locale . |
String |
getMastercss()
Returns the location of the master CSS file. |
File |
getOutputDirectory()
Returns the output directory for the plugin. |
File |
getOutputFile()
Returns the XML output file. |
String |
getProfile()
Returns the JavaFX platform name. |
org.apache.maven.project.MavenProject |
getProject()
Returns the Maven project object. |
protected List<org.apache.maven.artifact.Artifact> |
getProjectArtifacts(org.apache.maven.project.MavenProject p)
Returns the artifacts for the project. |
org.apache.maven.execution.MavenSession |
getSession()
Returns the Maven session object. |
String |
getShow()
Returns the visibility level to show in the documentation. |
String |
getSource()
Returns the version of the source code. |
String |
getSourcePath()
Returns the path to the source code. |
protected List<String> |
getSourcePaths()
Method to get the source paths. |
String |
getSubpackages()
Returns the sub packages to document. |
protected org.apache.maven.toolchain.ToolchainManager |
getToolchainManager()
Returns the toolchain manager. |
File |
getXsltfile()
Returns the XSL transformation file. |
boolean |
isBreakiterator()
Returns whether the sentence break iterator is used. |
boolean |
isDebug()
Returns whether the plugin is in debug mode. |
boolean |
isFailOnError()
Returns whether the plugin fails on errors. |
boolean |
isNohtml()
Returns whether HTML files are generated. |
boolean |
isQuiet()
Returns whether the plugin operates in quiet mode. |
boolean |
isVerbose()
Returns whether the plugin operates in verbose mode. |
void |
setAdditionalJOptions(String[] additionalJOptions)
Specifies the additional -J option value. |
void |
setAdditionalXslOptions(String[] additionalXslOptions)
Specifies the additional Xsl option value. |
void |
setBootclasspath(String bootclasspath)
Specifies the boot class path. |
void |
setBreakiterator(boolean breakiterator)
Specifies whether the sentence break iterator is used. |
void |
setDebug(boolean debug)
Specifies whether the plugin is in debug mode. |
void |
setDoclet(String doclet)
Specifies the doclet for HTML generation. |
void |
setDocletPath(String docletPath)
Specifies the path to the doclet for HTML generation. |
void |
setEncoding(String encoding)
Specifies the output encoding. |
void |
setExcludePackageNames(String excludePackageNames)
Specifies the list of package names to exclude. |
void |
setExtdirs(String extdirs)
Specifies the extension directories. |
void |
setExtracss(String extracss)
Specifies the extra CSS file to use. |
void |
setExtrajs(String extrajs)
Specifies the extra JavaScript file to use. |
void |
setFailOnError(boolean failOnError)
Specifies whether the plugin fails on errors. |
void |
setInputFiles(File[] inputFiles)
Specifies the XML input file. |
void |
setJavafxdocExecutable(String javafxdocExecutable)
Specifies the location of the Javafxdoc executable. |
void |
setLocale(String locale)
Specifies the documentation locale. |
void |
setMastercss(String mastercss)
Specifies the location of the master CSS file. |
void |
setNohtml(boolean nohtml)
Specifies whether HTML files are generated. |
void |
setOutputDirectory(File outputDirectory)
Specifies the output directory for the plugin. |
void |
setOutputFile(File outputFile)
Specifies the XML output file. |
void |
setProfile(String profile)
Specifies the JavaFX platform name (desktop, mobile, tv). |
void |
setProject(org.apache.maven.project.MavenProject project)
Specifies the Maven project object. |
void |
setQuiet(boolean quiet)
Specifies whether the plugin operates in quiet mode. |
void |
setShow(String show)
Specifies the visibility level to show in the documentation. |
void |
setSource(String source)
Specifies the version of the source code. |
void |
setSourcePath(String sourcePath)
Specifies the path to the source code. |
void |
setSubpackages(String subpackages)
Specifies the sub packages to document. |
protected void |
setToolchainManager(org.apache.maven.toolchain.ToolchainManager toolchainManager)
Specifies the toolchain manager. |
void |
setVerbose(boolean verbose)
Specifies whether the plugin operates in verbose mode. |
void |
setXsltfile(File xsltfile)
Specifies the XSL transformation file. |
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 |
---|
public static final Properties DEFAULT_JAVA_API_LINKS
<javaFXApiLinks> <property> <name>api_1.0</name> <value>http://java.sun.com/javafx/1/docs/api/</value> </property> <property> <name>api_1.1</name> <value>http://java.sun.com/javafx/1.1/docs/api/</value> </property> <property> <name>api_1.2</name> <value>http://java.sun.com/javafx/1.2/docs/api/</value> </property> <property> <name>api_1.3</name> <value>http://java.sun.com/javafx/1.3/docs/api/</value> </javaFXApiLinks>
protected static final String DEBUG_JAVAFXDOC_SCRIPT_NAME
debug
parameter is
on, i.e. javafxdoc.bat or javafxdoc.sh.
protected static final String FILES_FILE_NAME
files
file name in the output directory when calling
javafxdoc.exe(or .sh) [@options] [packagenames] [sourcefiles]
[@files]
.
protected static final String OPTIONS_FILE_NAME
options
file name in the output directory when calling
javafxdoc.exe(or .sh) [@options] [packagenames] [sourcefiles]
[@files]
.
protected static final float DEFAULT_JAVAFX_VERSION
protected static final float SINCE_JAVAFXDOC_1_3
Constructor Detail |
---|
public AbstractJavafxdocMojo()
Method Detail |
---|
public String[] getAdditionalJOptions()
public void setAdditionalJOptions(String[] additionalJOptions)
additionalJOptions
- the additional -J option valuepublic String[] getAdditionalXslOptions()
public void setAdditionalXslOptions(String[] additionalXslOptions)
additionalXslOptions
- the additional Xsl option valuepublic String getBootclasspath()
public void setBootclasspath(String bootclasspath)
bootclasspath
- the boot class pathpublic boolean isBreakiterator()
public void setBreakiterator(boolean breakiterator)
breakiterator
- whether the sentence break iterator is usedpublic boolean isDebug()
public void setDebug(boolean debug)
debug
- whether the plugin is in debug modepublic String getDoclet()
public void setDoclet(String doclet)
doclet
- the doclet for HTML generationpublic String getDocletPath()
public void setDocletPath(String docletPath)
docletPath
- the path to the doclet for HTML generationpublic String getEncoding()
public void setEncoding(String encoding)
encoding
- the output encodingpublic String getExcludePackageNames()
public void setExcludePackageNames(String excludePackageNames)
excludePackageNames
- the list of package names to excludepublic String getExtdirs()
public void setExtdirs(String extdirs)
extdirs
- the extension directoriespublic String getExtracss()
public void setExtracss(String extracss)
extracss
- the extra CSS file to usepublic String getExtrajs()
public void setExtrajs(String extrajs)
extrajs
- the extra JavaScript file to usepublic boolean isFailOnError()
public void setFailOnError(boolean failOnError)
failOnError
- whether the plugin fails on errorspublic File[] getInputFiles()
public void setInputFiles(File[] inputFiles)
inputFiles
- the XML input filepublic String getJavafxdocExecutable()
public void setJavafxdocExecutable(String javafxdocExecutable)
javafxdocExecutable
- the location of the Javafxdoc executablepublic String getLocale()
public void setLocale(String locale)
locale
- the documentation localepublic String getMastercss()
public void setMastercss(String mastercss)
mastercss
- the location of the master CSS filepublic boolean isNohtml()
public void setNohtml(boolean nohtml)
nohtml
- whether HTML files are generatedpublic File getOutputDirectory()
public void setOutputDirectory(File outputDirectory)
outputDirectory
- the output directory for the pluginpublic File getOutputFile()
public void setOutputFile(File outputFile)
outputFile
- the XML output filepublic org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
project
- the Maven project objectpublic String getProfile()
public void setProfile(String profile)
profile
- the JavaFX platform namepublic boolean isQuiet()
public void setQuiet(boolean quiet)
quiet
- whether the plugin operates in quiet modepublic org.apache.maven.execution.MavenSession getSession()
public String getShow()
public void setShow(String show)
show
- the visibility level to show in the documentationpublic String getSource()
public void setSource(String source)
source
- the version of the source codepublic String getSourcePath()
public void setSourcePath(String sourcePath)
sourcePath
- the path to the source codepublic String getSubpackages()
public void setSubpackages(String subpackages)
subpackages
- the sub packages to documentprotected org.apache.maven.toolchain.ToolchainManager getToolchainManager()
protected void setToolchainManager(org.apache.maven.toolchain.ToolchainManager toolchainManager)
toolchainManager
- the toolchain managerpublic boolean isVerbose()
public void setVerbose(boolean verbose)
verbose
- whether the plugin operates in verbose modepublic File getXsltfile()
public void setXsltfile(File xsltfile)
xsltfile
- the XSL transformation fileprotected boolean canGenerateReport(List<String> files)
files
- the project files
protected void executeReport() throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportException
- if problems are found during generationprotected String formatMessage(String message, Object... args)
message
- the message key in the resource bundleargs
- variable list of arguments to the message
protected ResourceBundle getBundle(Locale specificLocale)
specificLocale
- the locale of the currently generated report
protected List<String> getFiles(List<String> sourcePaths)
sourcePaths
- a List that contains the paths to the source files
protected float getJavafxdocVersion()
protected Locale getLocaleObject()
locale
.
locale
parametersetLocale(java.lang.String)
protected List<org.apache.maven.artifact.Artifact> getProjectArtifacts(org.apache.maven.project.MavenProject p)
p
- the Maven project
protected List<String> getSourcePaths()
JavafxdocUtil.pruneDirs(org.apache.maven.project.MavenProject,
java.util.List)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |