org.apache.maven.report.projectinfo
Class LicenseReport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.reporting.AbstractMavenReport
          extended by org.apache.maven.report.projectinfo.AbstractProjectInfoReport
              extended by org.apache.maven.report.projectinfo.LicenseReport
All Implemented Interfaces:
ContextEnabled, Mojo, MavenMultiPageReport, MavenReport

@Mojo(name="license")
public class LicenseReport
extends AbstractProjectInfoReport

Generates the Project License report.

Since:
2.0
Version:
$Id: LicenseReport.java 1367255 2012-07-30 20:01:21Z hboutemy $
Author:
Vincent Siveton

Field Summary
 
Fields inherited from class org.apache.maven.report.projectinfo.AbstractProjectInfoReport
customBundle, factory, localRepository, outputDirectory, project, remoteRepositories, resolver, siteRenderer, siteTool
 
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
LicenseReport()
           
 
Method Summary
 boolean canGenerateReport()
           
 void executeReport(Locale locale)
           
protected  String getI18Nsection()
           
protected static URL getLicenseURL(MavenProject project, String url)
           
 String getOutputName()
          
 
Methods inherited from class org.apache.maven.report.projectinfo.AbstractProjectInfoReport
execute, getCategoryName, getDescription, getI18N, getI18nString, getName, getOutputDirectory, getProject, getReportOutputDirectory, getSiteRenderer, setReportOutputDirectory
 
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, generate, generate, generate, getSink, getSinkFactory, isExternalReport
 
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
 

Constructor Detail

LicenseReport

public LicenseReport()
Method Detail

executeReport

public void executeReport(Locale locale)
Specified by:
executeReport in class AbstractMavenReport

canGenerateReport

public boolean canGenerateReport()
Specified by:
canGenerateReport in interface MavenReport
Overrides:
canGenerateReport in class AbstractMavenReport

getOutputName

public String getOutputName()


getI18Nsection

protected String getI18Nsection()
Specified by:
getI18Nsection in class AbstractProjectInfoReport

getLicenseURL

protected static URL getLicenseURL(MavenProject project,
                                   String url)
                            throws IOException
Parameters:
project - not null
url - not null
Returns:
a valid URL object from the url string
Throws:
IOException - if any


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