org.apache.maven.plugin.jxr
Class JxrReportUtil

java.lang.Object
  extended by org.apache.maven.plugin.jxr.JxrReportUtil

public class JxrReportUtil
extends java.lang.Object

Utility class for the jxr report.

Version:
$Id: JxrReportUtil.java 1145180 2011-07-11 14:02:55Z bimargulies $
Author:
Vincent Siveton

Constructor Summary
JxrReportUtil()
           
 
Method Summary
protected static java.lang.String getMavenJavadocPluginBasicOption(org.apache.maven.project.MavenProject project, java.lang.String optionName, java.lang.String defaultValue)
          Return the optionName value defined in a project for the "maven-javadoc-plugin" plugin.
protected static java.util.List getMavenJavadocPlugins(org.apache.maven.project.MavenProject project)
          Return the plugin references for the javadoc plugin in a project.
protected static java.lang.String getStructure(org.apache.maven.project.MavenProject project, boolean ignoreMissingSiteUrl)
          Generates the site structure using the project hierarchy (project and its modules) or using the distributionManagement elements from the pom.xml.
protected static boolean isJavadocAggregated(org.apache.maven.project.MavenProject project)
          Determine if javadoc is aggregated in this project, paying attention to both TODO: take cognizance of javadoc versus test-javadoc the old parameter and the new mojo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JxrReportUtil

public JxrReportUtil()
Method Detail

isJavadocAggregated

protected static boolean isJavadocAggregated(org.apache.maven.project.MavenProject project)
                                      throws java.io.IOException
Determine if javadoc is aggregated in this project, paying attention to both TODO: take cognizance of javadoc versus test-javadoc the old parameter and the new mojo.

Parameters:
project -
Returns:
Throws:
java.io.IOException

getMavenJavadocPluginBasicOption

protected static java.lang.String getMavenJavadocPluginBasicOption(org.apache.maven.project.MavenProject project,
                                                                   java.lang.String optionName,
                                                                   java.lang.String defaultValue)
                                                            throws java.io.IOException
Return the optionName value defined in a project for the "maven-javadoc-plugin" plugin.

Parameters:
project - not null
optionName - the option name wanted
defaultValue - a default value
Returns:
the value for the option name or the default value. Could be null if not found.
Throws:
java.io.IOException - if any

getMavenJavadocPlugins

protected static java.util.List getMavenJavadocPlugins(org.apache.maven.project.MavenProject project)
                                                throws java.io.IOException
Return the plugin references for the javadoc plugin in a project.

Parameters:
project - not null
Throws:
java.io.IOException - if any

getStructure

protected static java.lang.String getStructure(org.apache.maven.project.MavenProject project,
                                               boolean ignoreMissingSiteUrl)
                                        throws java.io.IOException
Generates the site structure using the project hierarchy (project and its modules) or using the distributionManagement elements from the pom.xml.

Parameters:
project -
ignoreMissingSiteUrl -
Returns:
the structure relative path
Throws:
java.io.IOException - if any
See Also:
org.apache.maven.plugins.site.SiteStageMojo#getStructure( MavenProject project, boolean ignoreMissingSiteUrl )


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.