Class BaseAntTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.rat.anttasks.BaseAntTask
- All Implemented Interfaces:
Cloneable
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 TypeClassDescriptionstatic classclassclassclassclassstatic classstatic classclassclassclassclassclassclassclassclassclassclassclassstatic classstatic classprotected static 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, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected////////////////////// End common Arg manipulation code -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd a value to the key in the argument list.protected voidAdd values to the key in the argument list. empty values are ignored.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 for removal since 0.17: Use <inputExcludes> instead.Deprecated.Deprecated for removal since 0.17: Use <inputIncludes> instead.Parse SCM based exclusion files to exclude specified files and directories.Excludes files matching <Expression>.Excludes files defined in standard collections based on commonly occurring groups.Includes files matching <Expression>.Includes files defined in standard collections based on commonly occurring groups.A comma separated list of approved license family IDs.A comma separated list of denied License family IDs.Deprecated.Deprecated for removal since 0.17: Use <configs> instead.A comma separated list of approved License IDs.A comma separated list of denied License IDs.static StringcreateName(String longOpt) Get the list of values for a key.protected voidRemove a key from the argument list.voidsetAddLicense(boolean addLicense) Deprecated.Deprecated for removal since 0.17: Use editLicense attribute instead.protected voidSet a key and value into the argument list.voidsetConfigurationNoDefaults(boolean configurationNoDefaults) Ignore default configuration.voidsetCopyright(String copyright) Deprecated.Deprecated for removal since 0.17: Use editCopyright attribute instead.voidsetDryRun(boolean dryRun) If set do not update the files but generate the reports.voidsetEditCopyright(String editCopyright) The copyright message to use in the license headers.voidsetEditLicense(boolean editLicense) Add the Apache-2.0 license header to any file with an unknown license that is not in the exclusion list.voidsetEditOverwrite(boolean editOverwrite) Forces any changes in files to be written directly to the source files so that new files are not created.voidsetExcludeFile(String excludeFile) Deprecated.Deprecated for removal since 0.17: Use inputExcludeFile attribute instead.voidsetForce(boolean force) Deprecated.Deprecated for removal since 0.17: Use editOverwrite attribute instead.voidsetIncludesFile(String includesFile) Deprecated.Deprecated for removal since 0.17: Use inputIncludeFile attribute instead.voidsetInputExcludeFile(String inputExcludeFile) Reads <Expression> entries from a file.voidsetInputExcludeSize(String inputExcludeSize) Excludes files with sizes less than the number of bytes specified.voidsetInputIncludeFile(String inputIncludeFile) Reads <Expression> entries from a file.voidsetLicenseFamiliesApprovedFile(String licenseFamiliesApprovedFile) Name of file containing comma separated lists of approved family IDs.voidsetLicenseFamiliesDeniedFile(String licenseFamiliesDeniedFile) Name of file containing comma separated lists of denied license IDs.voidsetLicensesApprovedFile(String licensesApprovedFile) Name of file containing comma separated lists of approved License IDs.voidsetLicensesDeniedFile(String licensesDeniedFile) Name of file containing comma separated lists of the denied license IDs.voidsetListFamilies(String listFamilies) Deprecated.Deprecated for removal since 0.17: Use outputFamilies attribute instead.voidsetListLicenses(String listLicenses) Deprecated.Deprecated for removal since 0.17: Use outputLicenses attribute instead.voidsetNoDefaultLicenses(boolean noDefaultLicenses) Deprecated.Deprecated for removal since 0.17: Use configurationNoDefaults attribute instead.voidDeprecated.Deprecated for removal since 0.17: Use outputFile attribute instead.voidsetOutputArchive(String outputArchive) Specifies the level of detail in ARCHIVE file reporting.voidsetOutputFamilies(String outputFamilies) List the defined license families.voidsetOutputFile(String outputFile) Define the output file where to write a report to.voidsetOutputLicenses(String outputLicenses) List the defined licenses.voidsetOutputStandard(String outputStandard) Specifies the level of detail in STANDARD file reporting.voidsetOutputStyle(String outputStyle) XSLT stylesheet to use when creating the report.voidsetScanHiddenDirectories(boolean scanHiddenDirectories) Deprecated.Deprecated for removal since 0.17: Use <inputIncludeStds> with 'HIDDEN_DIR' argument instead.voidsetStylesheet(String stylesheet) Deprecated.Deprecated for removal since 0.17: Use outputStyle attribute instead.voidsetXml(boolean xml) Deprecated.Deprecated for removal since 0.17: Use outputStyle attribute with the 'xml' argument instead.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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
args
-
-
Constructor Details
-
BaseAntTask
protected BaseAntTask()////////////////////// End common Arg manipulation code
-
-
Method Details
-
createName
-
unsupportedArgs
-
args
-
setArg
-
getArg
-
addArg
-
addArg
-
removeArg
Remove a key from the argument list.- Parameters:
key- the key to remove from the map.
-
setInputIncludeFile
Reads <Expression> entries from a file. Entries will override excluded files. Argument should be a File. (See Argument Types for clarification)- Parameters:
inputIncludeFile- <Expression> entries from a file.
-
setForce
Deprecated.Deprecated for removal since 0.17: Use editOverwrite attribute instead.Forces any changes in files to be written directly to the source files so that new files are not created. Argument should be a . (See Argument Types for clarification)- Parameters:
force- The state
-
setListFamilies
Deprecated.Deprecated for removal since 0.17: Use outputFamilies attribute instead.List the defined license families. Argument should be a LicenseFilter. (See Argument Types for clarification)- Parameters:
listFamilies- The defined license families.
-
setListLicenses
Deprecated.Deprecated for removal since 0.17: Use outputLicenses attribute instead.List the defined licenses. Argument should be a LicenseFilter. (See Argument Types for clarification)- Parameters:
listLicenses- The defined licenses.
-
setInputExcludeFile
Reads <Expression> entries from a file. Entries will be excluded from processing. Argument should be a File. (See Argument Types for clarification)- Parameters:
inputExcludeFile- <Expression> entries from a file.
-
setOutputLicenses
List the defined licenses. Argument should be a LicenseFilter. (See Argument Types for clarification)- Parameters:
outputLicenses- The defined licenses.
-
setEditLicense
public void setEditLicense(boolean editLicense) Add the Apache-2.0 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. Argument should be a . (See Argument Types for clarification)- Parameters:
editLicense- The state
-
setInputExcludeSize
Excludes files with sizes less than the number of bytes specified. Argument should be a Integer. (See Argument Types for clarification)- Parameters:
inputExcludeSize- Files with sizes less than the number of bytes specified.
-
setCopyright
Deprecated.Deprecated for removal since 0.17: Use editCopyright attribute instead.The copyright message to use in the license headers. Argument should be a Arg. (See Argument Types for clarification)- Parameters:
copyright- Copyright message to use in the license headers.
-
setOutputArchive
Specifies the level of detail in ARCHIVE file reporting. Argument should be a ProcessingType. (See Argument Types for clarification)- Parameters:
outputArchive- The level of detail in ARCHIVE file reporting.
-
setEditOverwrite
public void setEditOverwrite(boolean editOverwrite) Forces any changes in files to be written directly to the source files so that new files are not created. Only valid with editLicense attribute. Argument should be a . (See Argument Types for clarification)- Parameters:
editOverwrite- The state
-
setConfigurationNoDefaults
public void setConfigurationNoDefaults(boolean configurationNoDefaults) Ignore default configuration. Argument should be a . (See Argument Types for clarification)- Parameters:
configurationNoDefaults- The state
-
setOut
Deprecated.Deprecated for removal since 0.17: Use outputFile attribute instead.Define the output file where to write a report to. Argument should be a File. (See Argument Types for clarification)- Parameters:
out- The output file where to write a report to.
-
setIncludesFile
Deprecated.Deprecated for removal since 0.17: Use inputIncludeFile attribute instead.Reads <Expression> entries from a file. Entries will override excluded files. Argument should be a File. (See Argument Types for clarification)- Parameters:
includesFile- <Expression> entries from a file.
-
setLicensesDeniedFile
Name of file containing comma separated lists of 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. Argument should be a File. (See Argument Types for clarification)- Parameters:
licensesDeniedFile- Of file containing comma separated lists of the denied license IDs.
-
setExcludeFile
Deprecated.Deprecated for removal since 0.17: Use inputExcludeFile attribute instead.Reads <Expression> entries from a file. Entries will be excluded from processing. Argument should be a File. (See Argument Types for clarification)- Parameters:
excludeFile- <Expression> entries from a file.
-
setLicensesApprovedFile
Name of file containing comma separated lists of approved License IDs. Argument should be a File. (See Argument Types for clarification)- Parameters:
licensesApprovedFile- Of file containing comma separated lists of approved License IDs.
-
setOutputStyle
XSLT stylesheet to use when creating the report. Either an external xsl file may be specified or one of the internal named sheets. Argument should be a StyleSheet. (See Argument Types for clarification)- Parameters:
outputStyle- Stylesheet to use when creating the report.
-
setDryRun
public void setDryRun(boolean dryRun) If set do not update the files but generate the reports. Argument should be a . (See Argument Types for clarification)- Parameters:
dryRun- The state
-
setOutputFile
Define the output file where to write a report to. Argument should be a File. (See Argument Types for clarification)- Parameters:
outputFile- The output file where to write a report to.
-
setOutputStandard
Specifies the level of detail in STANDARD file reporting. Argument should be a ProcessingType. (See Argument Types for clarification)- Parameters:
outputStandard- The level of detail in STANDARD file reporting.
-
setLicenseFamiliesApprovedFile
Name of file containing comma separated lists of approved family IDs. Argument should be a File. (See Argument Types for clarification)- Parameters:
licenseFamiliesApprovedFile- Of file containing comma separated lists of approved family IDs.
-
setAddLicense
Deprecated.Deprecated for removal since 0.17: Use editLicense attribute instead.Add the Apache-2.0 license header to any file with an unknown license that is not in the exclusion list. Argument should be a . (See Argument Types for clarification)- Parameters:
addLicense- The state
-
setStylesheet
Deprecated.Deprecated for removal since 0.17: Use outputStyle attribute instead.XSLT stylesheet to use when creating the report. Argument should be a StyleSheet. (See Argument Types for clarification)- Parameters:
stylesheet- Stylesheet to use when creating the report.
-
setEditCopyright
The copyright message to use in the license headers. Usually in the form of "Copyright 2008 Foo". Only valid with editLicense attribute Argument should be a Arg. (See Argument Types for clarification)- Parameters:
editCopyright- Copyright message to use in the license headers.
-
setOutputFamilies
List the defined license families. Argument should be a LicenseFilter. (See Argument Types for clarification)- Parameters:
outputFamilies- The defined license families.
-
setLicenseFamiliesDeniedFile
Name of file containing comma separated lists of denied license IDs. These license families will be removed from the list of approved licenses. Once license families are removed they can not be added back. Argument should be a File. (See Argument Types for clarification)- Parameters:
licenseFamiliesDeniedFile- Of file containing comma separated lists of denied license IDs.
-
setScanHiddenDirectories
Deprecated.Deprecated for removal since 0.17: Use <inputIncludeStds> with 'HIDDEN_DIR' argument instead.Scans hidden directories. Argument should be a . (See Argument Types for clarification)- Parameters:
scanHiddenDirectories- The state
-
setXml
Deprecated.Deprecated for removal since 0.17: Use outputStyle attribute with the 'xml' argument instead.forces XML output rather than the textual report. Argument should be a . (See Argument Types for clarification)- Parameters:
xml- The state
-
setNoDefaultLicenses
Deprecated.Deprecated for removal since 0.17: Use configurationNoDefaults attribute instead.Ignore default configuration. Argument should be a . (See Argument Types for clarification)- Parameters:
noDefaultLicenses- The state
-
createCounterMins
The minimum number for the specified counter. -
createInputIncludes
Includes files matching <Expression>. Will override excluded files. -
createConfigs
File names for system configuration. -
createLicenses
Deprecated.Deprecated for removal since 0.17: Use <configs> instead.File names for system configuration. -
createInputExcludeStds
Excludes files defined in standard collections based on commonly occurring groups. Excludes any path matcher actions but DOES NOT exclude any file processor actions. -
createExcludes
Deprecated.Deprecated for removal since 0.17: Use <inputExcludes> instead.Excludes files matching <Expression>. -
createLicenseFamiliesDenied
A comma separated list of denied License family IDs. These license families will be removed from the list of approved licenses. Once license families are removed they can not be added back. -
createInputIncludeStds
Includes files defined in standard collections based on commonly occurring groups. Includes any path matcher actions but DOES NOT include any file processor actions. -
createCounterMaxs
The acceptable maximum number for the specified counter. A value of '-1' specifies an unlimited number. -
createInputExcludes
Excludes files matching <Expression>. -
createLicenseFamiliesApproved
A comma separated list of approved license family IDs. These license families will be added to the list of approved license families. -
createLicensesDenied
A comma separated list of denied License IDs. These licenses will be removed from the list of approved licenses. Once licenses are removed they can not be added back. -
createInputExcludeParsedScms
Parse SCM based exclusion files to exclude specified files and directories. This action can apply to any standard collection that implements a file processor. -
createLicensesApproved
A comma separated list of approved License IDs. These licenses will be added to the list of approved licenses. -
createIncludes
Deprecated.Deprecated for removal since 0.17: Use <inputIncludes> instead.Includes files matching <Expression>. Will override excluded files.
-