org.apache.maven.report.projectinfo
Class LicenseReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.report.projectinfo.AbstractProjectInfoReport
org.apache.maven.report.projectinfo.LicenseReport
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.reporting.MavenReport, org.apache.maven.plugin.Mojo
- public class LicenseReport
- extends AbstractProjectInfoReport
Generates the Project License report.
- Since:
- 2.0
- Version:
- $Id: LicenseReport.java 748487 2009-02-27 11:22:04Z vsiveton $
- Author:
- Vincent Siveton
- Is defined by the goal name:
- license
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 |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
closeReport, generate, getSink, 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 |
LicenseReport
public LicenseReport()
getName
public String getName(Locale locale)
-
getDescription
public String getDescription(Locale locale)
-
executeReport
public void executeReport(Locale locale)
-
canGenerateReport
public boolean canGenerateReport()
-
getOutputName
public String getOutputName()
-
getLicenseURL
protected static URL getLicenseURL(org.apache.maven.project.MavenProject project,
String url)
throws MalformedURLException,
IOException
- Parameters:
project
- not nullurl
- not null
- Returns:
- a valid URL object from the url string
- Throws:
MalformedURLException
- if any
IOException
- if any
Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.