Package org.apache.rat.anttasks
Class BaseAntTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.rat.anttasks.BaseAntTask
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
Report
public abstract class BaseAntTask
extends org.apache.tools.ant.Task
Generated class to provide Ant support for standard RAT command line options.
DO NOT EDIT - GENERATED FILE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
A child element.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
-
Field Summary
FieldsModifier and TypeFieldDescriptionA map of CLI based arguments to values.Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add a value to the key in the argument list.protected void
Add values to the key in the argument list.args()
Gets the list of arguments prepared for the CLI code to parse.File names for system configuration.The acceptable maximum number for the specified counter.The minimum number for the specified counter.Deprecated.Deprecated.Deprecated.Deprecated.Excludes files matching <Expression>.Reads <Expression> entries from a file.Parse SCM based exclusion files to exclude specified files and directories.Excludes files with sizes less than the given argument.Excludes files defined in standard collections based on commonly occurring groups.Includes files matching <Expression>.Reads <Expression> entries from a file.Includes files defined in standard collections based on commonly occurring groups.A file containing file names to process.The approved License Family IDs.Name of file containing the approved family IDs.The denied License family IDs.Name of file containing the denied license IDs.Deprecated.The approved License IDs.Name of file containing the approved License IDs.The denied License IDs.Name of file containing the denied license IDs.static String
createName
(String longOpt) Deprecated.Define the output file where to write a report to.Get the list of values for a key.protected void
Remove a key from the argument list.void
setAddLicense
(boolean addLicense) Deprecated.protected void
Set a key and value into the argument list.void
setConfigurationNoDefaults
(boolean configurationNoDefaults) Ignore default configuration.void
setCopyright
(String copyright) Deprecated.void
setDryRun
(boolean dryRun) If set do not update the files but generate the reports.void
setEditCopyright
(String editCopyright) The copyright message to use in the license headers.void
setEditLicense
(boolean editLicense) Add the default license header to any file with an unknown license that is not in the exclusion list.void
setEditOverwrite
(boolean editOverwrite) Forces any changes in files to be written directly to the source files (i.e. new files are not created).void
setExcludeFile
(String excludeFile) Deprecated.void
setForce
(boolean force) Deprecated.void
setHelpLicenses
(boolean helpLicenses) Print information about registered licenses.void
setIncludesFile
(String includesFile) Deprecated.void
setInputExcludeFile
(String inputExcludeFile) Reads <Expression> entries from a file.void
setInputExcludeSize
(String inputExcludeSize) Excludes files with sizes less than the given argument.void
setInputIncludeFile
(String inputIncludeFile) Reads <Expression> entries from a file.void
setLicenseFamiliesApprovedFile
(String licenseFamiliesApprovedFile) Name of file containing the approved family IDs.void
setLicenseFamiliesDeniedFile
(String licenseFamiliesDeniedFile) Name of file containing the denied license IDs.void
setLicensesApprovedFile
(String licensesApprovedFile) Name of file containing the approved License IDs.void
setLicensesDeniedFile
(String licensesDeniedFile) Name of file containing the denied license IDs.void
setListFamilies
(String listFamilies) Deprecated.void
setListLicenses
(String listLicenses) Deprecated.void
setNoDefaultLicenses
(boolean noDefaultLicenses) Deprecated.void
Deprecated.void
setOutputArchive
(String outputArchive) Specifies the level of detail in ARCHIVE file reporting.void
setOutputFamilies
(String outputFamilies) List the defined license families.void
setOutputFile
(String outputFile) Define the output file where to write a report to.void
setOutputLicenses
(String outputLicenses) List the defined licenses.void
setOutputStandard
(String outputStandard) Specifies the level of detail in STANDARD file reporting.void
setOutputStyle
(String outputStyle) XSLT stylesheet to use when creating the report.void
setScanHiddenDirectories
(boolean scanHiddenDirectories) Deprecated.void
setStylesheet
(String stylesheet) Deprecated.void
setXml
(boolean xml) Deprecated.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
args
A map of CLI based arguments to values.
-
-
Constructor Details
-
BaseAntTask
protected BaseAntTask()
-
-
Method Details
-
createName
-
unsupportedArgs
-
args
Gets the list of arguments prepared for the CLI code to parse.- Returns:
- the List of arguments for the CLI command line.
-
setArg
Set a key and value into the argument list. Replaces any existing value.- Parameters:
key
- the key for the map.value
- the value to set.
-
getArg
Get the list of values for a key.- Parameters:
key
- the key for the map.- Returns:
- the list of values for the key or
null
if not set.
-
addArg
Add values to the key in the argument list. If the key does not exist, adds it.- Parameters:
key
- the key for the map.value
- the value to set.
-
addArg
Add a value to the key in the argument list. If the key does not exist, adds it.- Parameters:
key
- the key for the map.value
- the value to set.
-
removeArg
Remove a key from the argument list.- Parameters:
key
- the key to remove from the map.
-
setCopyright
Deprecated.The copyright message to use in the license headers. Deprecated for removal since 0.17: Use --edit-copyright instead.- Parameters:
copyright
- The value to set
-
setEditCopyright
The copyright message to use in the license headers. Usually in the form of "Copyright 2008 Foo". Only valid with editLicense attribute- Parameters:
editCopyright
- The value to set
-
setForce
public void setForce(boolean force) Deprecated.Forces any changes in files to be written directly to the source files (i.e. new files are not created). Deprecated for removal since 0.17: Use --edit-overwrite instead. -
setEditOverwrite
public void setEditOverwrite(boolean editOverwrite) Forces any changes in files to be written directly to the source files (i.e. new files are not created). Only valid with editLicense attribute -
setAddLicense
public void setAddLicense(boolean addLicense) Deprecated.Add the default license header to any file with an unknown license that is not in the exclusion list. Deprecated for removal since 0.17: Use --edit-license instead. -
setEditLicense
public void setEditLicense(boolean editLicense) Add the default license header to any file with an unknown license that is not in the exclusion list. By default new files will be created with the license header, to force the modification of existing files use the editOverwrite attribute option. -
setConfigurationNoDefaults
public void setConfigurationNoDefaults(boolean configurationNoDefaults) Ignore default configuration. -
setNoDefaultLicenses
public void setNoDefaultLicenses(boolean noDefaultLicenses) Deprecated.Ignore default configuration. Deprecated for removal since 0.17: Use --configuration-no-defaults instead. -
setLicensesApprovedFile
Name of file containing the approved License IDs.- Parameters:
licensesApprovedFile
- The value to set
-
setLicenseFamiliesApprovedFile
Name of file containing the approved family IDs.- Parameters:
licenseFamiliesApprovedFile
- The value to set
-
setLicensesDeniedFile
Name of file containing the denied license IDs.- Parameters:
licensesDeniedFile
- The value to set
-
setLicenseFamiliesDeniedFile
Name of file containing the denied license IDs.- Parameters:
licenseFamiliesDeniedFile
- The value to set
-
setExcludeFile
Deprecated.Reads <Expression> entries from a file. Entries will be excluded from processing. Deprecated for removal since 0.17: Use --input-exclude-file instead.- Parameters:
excludeFile
- The value to set
-
setInputExcludeFile
Reads <Expression> entries from a file. Entries will be excluded from processing.- Parameters:
inputExcludeFile
- The value to set
-
setInputExcludeSize
Excludes files with sizes less than the given argument.- Parameters:
inputExcludeSize
- The value to set
-
setInputIncludeFile
Reads <Expression> entries from a file. Entries will override excluded files.- Parameters:
inputIncludeFile
- The value to set
-
setIncludesFile
Deprecated.Reads <Expression> entries from a file. Entries will be excluded from processing. Deprecated for removal since 0.17: Use --input-include-file instead.- Parameters:
includesFile
- The value to set
-
setScanHiddenDirectories
public void setScanHiddenDirectories(boolean scanHiddenDirectories) Deprecated.Scans hidden directories. Deprecated for removal since 0.17: Use --input-include-std with 'HIDDEN_DIR' argument instead. -
setOutputStyle
XSLT stylesheet to use when creating the report. Either an external xsl file may be specified or one of the internal named sheets.- Parameters:
outputStyle
- The value to set
-
setStylesheet
Deprecated.XSLT stylesheet to use when creating the report. Deprecated for removal since 0.17: Use --output-style instead.- Parameters:
stylesheet
- The value to set
-
setXml
public void setXml(boolean xml) Deprecated.forces XML output rather than the textual report. Deprecated for removal since 0.17: Use --output-style with the 'xml' argument instead. -
setOutputLicenses
List the defined licenses.- Parameters:
outputLicenses
- The value to set
-
setListLicenses
Deprecated.List the defined licenses. Deprecated for removal since 0.17: Use --output-licenses instead.- Parameters:
listLicenses
- The value to set
-
setOutputFamilies
List the defined license families.- Parameters:
outputFamilies
- The value to set
-
setListFamilies
Deprecated.List the defined license families. Deprecated for removal since 0.17: Use --output-families instead.- Parameters:
listFamilies
- The value to set
-
setDryRun
public void setDryRun(boolean dryRun) If set do not update the files but generate the reports. -
setOut
Deprecated.Define the output file where to write a report to. Deprecated for removal since 0.17: Use --output-file instead.- Parameters:
out
- The value to set
-
setOutputFile
Define the output file where to write a report to.- Parameters:
outputFile
- The value to set
-
setOutputArchive
Specifies the level of detail in ARCHIVE file reporting.- Parameters:
outputArchive
- The value to set
-
setOutputStandard
Specifies the level of detail in STANDARD file reporting.- Parameters:
outputStandard
- The value to set
-
setHelpLicenses
public void setHelpLicenses(boolean helpLicenses) Print information about registered licenses. -
createConfig
File names for system configuration. -
createLicenses
Deprecated.File names for system configuration. Deprecated for removal since 0.17: Use --config instead. -
createLicensesApproved
The approved License IDs. These licenses will be added to the list of approved licenses. -
createLicensesApprovedFile
Name of file containing the approved License IDs. -
createLicenseFamiliesApproved
The approved License Family IDs. These licenses families will be added to the list of approved licenses families. -
createLicenseFamiliesApprovedFile
Name of file containing the approved family IDs. -
createLicensesDenied
The denied License IDs. These licenses will be removed from the list of approved licenses. Once licenses are removed they can not be added back. -
createLicensesDeniedFile
Name of file containing the denied license IDs. -
createLicenseFamiliesDenied
The denied License family IDs. These license families will be removed from the list of approved licenses. -
createLicenseFamiliesDeniedFile
Name of file containing the denied license IDs. -
createCounterMax
The acceptable maximum number for the specified counter. A value of '-1' specifies an unlimited number. -
createCounterMin
The minimum number for the specified counter. -
createInputSource
A file containing file names to process. File names must use linux directory separator ('/') or none at all. File names that do not start with '/' are relative to the directory where the argument is located. -
createExclude
Deprecated.Excludes files matching <Expression>. Deprecated for removal since 0.17: Use --input-exclude instead. -
createInputExclude
Excludes files matching <Expression>. -
createExcludeFile
Deprecated.Reads <Expression> entries from a file. Entries will be excluded from processing. Deprecated for removal since 0.17: Use --input-exclude-file instead. -
createInputExcludeFile
Reads <Expression> entries from a file. Entries will be excluded from processing. -
createInputExcludeStd
Excludes files defined in standard collections based on commonly occurring groups. -
createInputExcludeSize
Excludes files with sizes less than the given argument. -
createInputInclude
Includes files matching <Expression>. Will override excluded files. -
createInclude
Deprecated.Includes files matching <Expression>. Will override excluded files. Deprecated for removal since 0.17: Use --input-include instead. -
createInputIncludeFile
Reads <Expression> entries from a file. Entries will override excluded files. -
createIncludesFile
Deprecated.Reads <Expression> entries from a file. Entries will be excluded from processing. Deprecated for removal since 0.17: Use --input-include-file instead. -
createInputIncludeStd
Includes files defined in standard collections based on commonly occurring groups. Will override excluded files. -
createInputExcludeParsedScm
Parse SCM based exclusion files to exclude specified files and directories. -
createOut
Deprecated.Define the output file where to write a report to. Deprecated for removal since 0.17: Use --output-file instead. -
createOutputFile
Define the output file where to write a report to.
-