public class Report
extends org.apache.tools.ant.Task
IHeaderMatcher(s) can be specified as nested elements as well.
The attribute format
defines the output format and
can take the values
Modifier and Type | Class and Description |
---|---|
static class |
Report.AddLicenseHeaders
Type for the addLicenseHeaders attribute.
|
static class |
Report.Format
Type for the format attribute.
|
Constructor and Description |
---|
Report() |
Modifier and Type | Method and Description |
---|---|
void |
add(IHeaderMatcher matcher) |
void |
add(ILicenseFamily license) |
void |
add(org.apache.tools.ant.types.ResourceCollection rc)
Adds resources that will be checked.
|
void |
addConfiguredStylesheet(org.apache.tools.ant.types.resources.Union u)
Which stylesheet to use (only meaningful with format='styled').
|
void |
execute()
Generates the report.
|
void |
setAddDefaultLicenseMatchers(boolean addDefaultLicenseMatchers) |
void |
setAddLicenseHeaders(Report.AddLicenseHeaders pAdd) |
void |
setCopyrightMessage(String pMessage) |
void |
setFormat(Report.Format f)
Which format to use.
|
void |
setReportFile(File f)
Where to send the report to.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void add(org.apache.tools.ant.types.ResourceCollection rc)
rc
- resource to check.public void add(IHeaderMatcher matcher)
matcher
- Adds a license matcher.public void add(ILicenseFamily license)
public void setAddDefaultLicenseMatchers(boolean addDefaultLicenseMatchers)
addDefaultLicenseMatchers
- Whether to add the default list of license matchers.public void setReportFile(File f)
f
- report output file.public void setFormat(Report.Format f)
f
- format.public void setAddLicenseHeaders(Report.AddLicenseHeaders pAdd)
pAdd
- Whether to add license headers.public void setCopyrightMessage(String pMessage)
pMessage
- copyright message to set.public void addConfiguredStylesheet(org.apache.tools.ant.types.resources.Union u)
u
- stylesheet.public void execute()
execute
in class org.apache.tools.ant.Task
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.