Full name:
org.apache.rat:apache-rat-plugin:0.17-SNAPSHOT:check
Description:
Run Rat to perform a violation check.
This documentation mentions data types for some of the arguments. An explanation of the data types is included in this documentation package.
Attributes:
validate
.Name | Type | Since | Description |
---|---|---|---|
<basedir> |
File |
- |
The base directory, in which to search for files. Default: ${basedir} User Property: rat.basedir |
Name | Type | Since | Description |
---|---|---|---|
<addDefaultLicenseMatchers> |
boolean |
- |
Deprecated. Use specific configuration under <configuration>. Whether to add the default list of license matchers. User Property: rat.addDefaultLicenseMatchers |
<addDefaultLicenses> |
boolean |
- |
Deprecated. Deprecated for removal since 0.17: Use <configurationNoDefaults> instead (note the change of state). Whether to add the default list of licenses. User Property: rat.addDefaultLicenses |
<addLicense> |
boolean |
- |
Deprecated. Deprecated for removal since 0.17: Use <editLicense> instead. Add the default license header to any file with an unknown license that is not in the exclusion list. User Property: rat.AddLicense |
<addLicenseHeaders> |
String |
- |
Deprecated. Use <editLicense> and <editOverwrite>. Whether to add license headers; possible values are forced , true , and false (default).User Property: rat.addLicenseHeaders |
<additionalLicenseFiles> |
String[] |
- |
Deprecated. Use specific configuration under <configuration>. Specifies the additional licenses file. |
<approvedLicenseFile> |
String |
- |
Deprecated. Use specific configuration under <configuration>. The file of approved licenses User Property: rat.approvedFile |
<approvedLicenses> |
String[] |
- |
Deprecated. Use specific configuration under <configuration>. The list of approved licenses |
<config> |
String |
- |
File names for system configuration. Arguments should be File. (See Argument Types for clarification) |
<configs> |
String[] |
- |
File names for system configuration. Arguments should be File. (See Argument Types for clarification) |
<configurationNoDefaults> |
boolean |
- |
Ignore default configuration. User Property: rat.ConfigurationNoDefaults |
<consoleOutput> |
boolean |
0.12 |
Whether to output the names of files that have unapproved licenses to the console. Defaults to true to ease builds in containers where you are unable to access rat.txt easily.Default: true User Property: rat.consoleOutput |
<copyright> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <editCopyright> instead. The copyright message to use in the license headers. User Property: rat.Copyright |
<copyrightMessage> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <editCopyright> instead. Copyright message to add to license headers. User Property: rat.copyrightMessage |
<counterMax> |
String |
- |
The acceptable maximum number for the specified counter. A value of '-1' specifies an unlimited number. Arguments should be CounterPattern. (See Argument Types for clarification) |
<counterMaxs> |
String[] |
- |
The acceptable maximum number for the specified counter. A value of '-1' specifies an unlimited number. Arguments should be CounterPattern. (See Argument Types for clarification) |
<counterMin> |
String |
- |
The minimum number for the specified counter. Arguments should be CounterPattern. (See Argument Types for clarification) |
<counterMins> |
String[] |
- |
The minimum number for the specified counter. Arguments should be CounterPattern. (See Argument Types for clarification) |
<defaultLicenseFiles> |
String[] |
0.8 |
Deprecated. Use specific configuration under <configuration>. Specifies the licenses to accept. By default, these are added to the default licenses, unless you set <addDefaultLicenseMatchers> to false. Arguments should be file name of <Configs> file structure. |
<defaultReportFile> |
File |
- |
Deprecated. Use <outputFile> instead. The default output file if no other is specified. Default: ${project.build.directory}/rat.txt |
<dryRun> |
boolean |
- |
If set do not update the files but generate the reports. User Property: rat.DryRun |
<editCopyright> |
String |
- |
The copyright message to use in the license headers. Usually in the form of "Copyright 2008 Foo". Only valid with <editLicense> User Property: rat.EditCopyright |
<editLicense> |
boolean |
- |
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> option. User Property: rat.EditLicense |
<editOverwrite> |
boolean |
- |
Forces any changes in files to be written directly to the source files (i.e. new files are not created). Only valid with <editLicense> User Property: rat.EditOverwrite |
<exclude> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <inputExclude> instead. Excludes files matching <Expression>. Arguments should be Expression. (See Argument Types for clarification) |
<excludeFile> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <inputExcludeFile> instead. Reads <Expression> entries from a file. Entries will be excluded from processing. Argument should be a File. (See Argument Types for clarification) User Property: rat.ExcludeFile |
<excludeSubProjects> |
boolean |
- |
Whether to exclude subprojects. This is recommended, if you want a separate apache-rat-plugin report for each subproject. Default: true User Property: rat.excludeSubprojects |
<excludes> |
String[] |
- |
Deprecated. Deprecated for removal since 0.17: Use <inputExclude> instead. Excludes files matching <Expression>. Arguments should be Expression. (See Argument Types for clarification) |
<excludesFileCharset> |
String |
- |
Specifies the include files character set. If ${project.build.sourceEncoding} is not set defaults to UTF-8. Default: ${project.build.sourceEncoding} User Property: rat.excludesFileCharset |
<families> |
Family[] |
- |
Deprecated. Use specific configuration under <configuration>. The list of family definitions. |
<force> |
boolean |
- |
Deprecated. Deprecated for removal since 0.17: Use <editOverwrite> instead. Forces any changes in files to be written directly to the source files (i.e. new files are not created). User Property: rat.Force |
<helpLicenses> |
boolean |
- |
Print information about registered licenses. User Property: rat.HelpLicenses |
<ignoreErrors> |
boolean |
0.9 |
Will ignore RAT errors and display a log message if any. Its use is NOT RECOMMENDED, but quite convenient on occasion. Default: false User Property: rat.ignoreErrors |
<include> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <inputInclude> instead. Includes files matching <Expression>. Will override excluded files. Arguments should be Expression. (See Argument Types for clarification) |
<includes> |
String[] |
- |
Deprecated. Deprecated for removal since 0.17: Use <inputInclude> instead. Includes files matching <Expression>. Will override excluded files. Arguments should be Expression. (See Argument Types for clarification) |
<includesFile> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <inputIncludeFile> instead. Reads <Expression> entries from a file. Entries will be excluded from processing. Argument should be a File. (See Argument Types for clarification) User Property: rat.IncludesFile |
<includesFileCharset> |
String |
- |
Specifies the include files character set. If ${project.build.sourceEncoding} is not set defaults to UTF-8. Default: ${project.build.sourceEncoding} User Property: rat.includesFileCharset |
<inputExclude> |
String |
- |
Excludes files matching <Expression>. Arguments should be Expression. (See Argument Types for clarification) |
<inputExcludeFile> |
String |
- |
Reads <Expression> entries from a file. Entries will be excluded from processing. Argument should be a File. (See Argument Types for clarification) User Property: rat.InputExcludeFile |
<inputExcludeParsedScm> |
String |
- |
Parse SCM based exclusion files to exclude specified files and directories. Arguments should be StandardCollection. (See Argument Types for clarification) |
<inputExcludeParsedScms> |
String[] |
- |
Parse SCM based exclusion files to exclude specified files and directories. Arguments should be StandardCollection. (See Argument Types for clarification) |
<inputExcludeSize> |
String |
- |
Excludes files with sizes less than the given argument. Argument should be a Integer. (See Argument Types for clarification) User Property: rat.InputExcludeSize |
<inputExcludeStd> |
String |
- |
Excludes files defined in standard collections based on commonly occurring groups. Arguments should be StandardCollection. (See Argument Types for clarification) |
<inputExcludeStds> |
String[] |
- |
Excludes files defined in standard collections based on commonly occurring groups. Arguments should be StandardCollection. (See Argument Types for clarification) |
<inputExcludes> |
String[] |
- |
Excludes files matching <Expression>. Arguments should be Expression. (See Argument Types for clarification) |
<inputInclude> |
String |
- |
Includes files matching <Expression>. Will override excluded files. Arguments should be Expression. (See Argument Types for clarification) |
<inputIncludeFile> |
String |
- |
Reads <Expression> entries from a file. Entries will override excluded files. Argument should be a File. (See Argument Types for clarification) User Property: rat.InputIncludeFile |
<inputIncludeStd> |
String |
- |
Includes files defined in standard collections based on commonly occurring groups. Will override excluded files. Arguments should be StandardCollection. (See Argument Types for clarification) |
<inputIncludeStds> |
String[] |
- |
Includes files defined in standard collections based on commonly occurring groups. Will override excluded files. Arguments should be StandardCollection. (See Argument Types for clarification) |
<inputIncludes> |
String[] |
- |
Includes files matching <Expression>. Will override excluded files. Arguments should be Expression. (See Argument Types for clarification) |
<inputSource> |
String |
- |
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. Arguments should be File. (See Argument Types for clarification) |
<inputSources> |
String[] |
- |
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. Arguments should be File. (See Argument Types for clarification) |
<licenseFamilies> |
SimpleLicenseFamily[] |
0.8 |
Deprecated. Use LicenseFamily section of configuration file. Specifies the license families to accept. |
<licenseFamiliesApproved> |
String |
- |
The approved License Family IDs. These licenses families will be added to the list of approved licenses families. Arguments should be FamilyID. (See Argument Types for clarification) |
<licenseFamiliesApprovedFile> |
String |
- |
Name of file containing the approved family IDs. Argument should be a File. (See Argument Types for clarification) User Property: rat.LicenseFamiliesApprovedFile |
<licenseFamiliesDenied> |
String |
- |
The denied License family IDs. These license families will be removed from the list of approved licenses. Arguments should be FamilyID. (See Argument Types for clarification) |
<licenseFamiliesDeniedFile> |
String |
- |
Name of file containing the denied license IDs. Argument should be a File. (See Argument Types for clarification) User Property: rat.LicenseFamiliesDeniedFile |
<licenses> |
Object[] |
- |
Deprecated. Deprecated for removal since 0.17: Use specific configuration under <configuration>. See configuration file documentation. The list of license definitions. |
<licensesApproved> |
String |
- |
The approved License IDs. These licenses will be added to the list of approved licenses. Arguments should be LicenseID. (See Argument Types for clarification) |
<licensesApprovedFile> |
String |
- |
Name of file containing the approved License IDs. Argument should be a File. (See Argument Types for clarification) User Property: rat.LicensesApprovedFile |
<licensesDenied> |
String |
- |
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. Arguments should be LicenseID. (See Argument Types for clarification) |
<licensesDeniedFile> |
String |
- |
Name of file containing the denied license IDs. Argument should be a File. (See Argument Types for clarification) User Property: rat.LicensesDeniedFile |
<listFamilies> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <outputFamilies> instead. List the defined license families. Argument should be a LicenseFilter. (See Argument Types for clarification) User Property: rat.ListFamilies |
<listLicenses> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <outputLicenses> instead. List the defined licenses. Argument should be a LicenseFilter. (See Argument Types for clarification) User Property: rat.ListLicenses |
<noDefaultLicenses> |
boolean |
- |
Deprecated. Deprecated for removal since 0.17: Use <configurationNoDefaults> instead. Ignore default configuration. User Property: rat.NoDefaultLicenses |
<numUnapprovedLicenses> |
int |
- |
Deprecated. Use <counterMax>Unapproved:value</counterMax>. Maximum number of files with unapproved licenses. Default: 0 User Property: rat.numUnapprovedLicenses |
<out> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <outputFile> instead. Define the output file where to write a report to. Argument should be a File. (See Argument Types for clarification) User Property: rat.Out |
<outputArchive> |
String |
- |
Specifies the level of detail in ARCHIVE file reporting. Argument should be a ProcessingType. (See Argument Types for clarification) Default: NOTIFICATION User Property: rat.OutputArchive |
<outputFamilies> |
String |
- |
List the defined license families. Argument should be a LicenseFilter. (See Argument Types for clarification) Default: NONE User Property: rat.OutputFamilies |
<outputFile> |
String |
- |
Define the output file where to write a report to. Argument should be a File. (See Argument Types for clarification) Default: ${project.build.directory}/rat.txt User Property: rat.OutputFile |
<outputLicenses> |
String |
- |
List the defined licenses. Argument should be a LicenseFilter. (See Argument Types for clarification) Default: NONE User Property: rat.OutputLicenses |
<outputStandard> |
String |
- |
Specifies the level of detail in STANDARD file reporting. Argument should be a ProcessingType. (See Argument Types for clarification) Default: ABSENCE User Property: rat.OutputStandard |
<outputStyle> |
String |
- |
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) User Property: rat.OutputStyle |
<parseSCMIgnoresAsExcludes> |
boolean |
- |
Deprecated. When set to true specifies that the STANDARD_SCMS exclusion file processors are used to exclude files and directories (e.g. ".gitignore" or ".hgignore"). Use "inputIncludeStd STANDARD_SCMS" to override. Whether to parse source code management system (SCM) ignore files and use their contents as excludes. At the moment this works for the following SCMs: See also: org.apache.rat.config.exclusion.StandardCollection Default: true User Property: rat.parseSCMIgnoresAsExcludes |
<reportFile> |
File |
- |
Deprecated. Use 'out' property instead. Where to store the report. |
<reportStyle> |
String |
- |
Deprecated. Use setStyleSheet or xml instead. Output style of the report. Use "plain" (the default) for a plain text report or "xml" for the raw XML report. Alternatively you can give the path of an XSL transformation that will be applied on the raw XML to produce the report written to the output file. User Property: rat.outputStyle |
<scanHiddenDirectories> |
boolean |
- |
Deprecated. Deprecated for removal since 0.17: Use <inputIncludeStd> with 'HIDDEN_DIR' argument instead. Scans hidden directories. User Property: rat.ScanHiddenDirectories |
<skip> |
boolean |
0.11 |
Will skip the plugin execution, e.g. for technical builds that do not take license compliance into account. Default: false User Property: rat.skip |
<stylesheet> |
String |
- |
Deprecated. Deprecated for removal since 0.17: Use <outputStyle> instead. XSLT stylesheet to use when creating the report. Argument should be a StyleSheet. (See Argument Types for clarification) User Property: rat.Stylesheet |
<useDefaultExcludes> |
boolean |
- |
Deprecated. When set to true specifies that the STANDARD_PATTERNS are excluded, as are the STANDARD_SCMS patterns. Use the various InputExclude and InputInclude elements to explicitly specify what to include or exclude. Whether to use the default excludes when scanning for files. The default excludes are:
Default: true User Property: rat.useDefaultExcludes |
<useEclipseDefaultExcludes> |
boolean |
- |
Deprecated. When set to true specifies that the ECLIPSE patterns are excluded. Use "inputIncludeStd ECLIPSE" to override. Whether to use the Eclipse specific default excludes when scanning for files. Eclipse specific default excludes are given by the constant ECLIPSE_DEFAULT_EXCLUDES: The .classpath and .project files, the .settings directory, and so on.Default: true User Property: rat.useEclipseDefaultExcludes |
<useIdeaDefaultExcludes> |
boolean |
- |
Deprecated. When set to true specifies that the IDEA patterns are excluded. Use "inputIncludeStd IDEA" to override. Whether to use the IDEA specific default excludes when scanning for files. IDEA specific default excludes are given by the constant IDEA_DEFAULT_EXCLUDES: The *.iml , *.ipr and *.iws files and the .idea directory.Default: true User Property: rat.useIdeaDefaultExcludes |
<useMavenDefaultExcludes> |
boolean |
- |
Deprecated. When set to true specifies that the MAVEN patterns are excluded. Use "inputIncludeStd MAVEN" to override. Whether to use the Maven specific default excludes when scanning for files. Maven specific default excludes are given by the constant MAVEN_DEFAULT_EXCLUDES: The target directory, the cobertura.ser file, and so on.Default: true User Property: rat.useMavenDefaultExcludes |
<xml> |
boolean |
- |
Deprecated. Deprecated for removal since 0.17: Use <outputStyle> with the 'xml' argument instead. forces XML output rather than the textual report. User Property: rat.Xml |
boolean
No
rat.addDefaultLicenseMatchers
boolean
No
rat.addDefaultLicenses
boolean
No
rat.AddLicense
forced
, true
, and false
(default).java.lang.String
No
rat.addLicenseHeaders
java.lang.String[]
No
java.lang.String
No
rat.approvedFile
java.lang.String[]
No
java.io.File
Yes
rat.basedir
${basedir}
java.lang.String
No
java.lang.String[]
No
boolean
No
rat.ConfigurationNoDefaults
true
to ease builds in containers where you are unable to access rat.txt easily.boolean
0.12
No
rat.consoleOutput
true
java.lang.String
No
rat.Copyright
java.lang.String
No
rat.copyrightMessage
java.lang.String
No
java.lang.String[]
No
java.lang.String
No
java.lang.String[]
No
java.lang.String[]
0.8
No
java.io.File
No
${project.build.directory}/rat.txt
boolean
No
rat.DryRun
java.lang.String
No
rat.EditCopyright
boolean
No
rat.EditLicense
boolean
No
rat.EditOverwrite
java.lang.String
No
java.lang.String
No
rat.ExcludeFile
boolean
No
rat.excludeSubprojects
true
java.lang.String[]
No
java.lang.String
No
rat.excludesFileCharset
${project.build.sourceEncoding}
org.apache.rat.mp.Family[]
No
boolean
No
rat.Force
boolean
No
rat.HelpLicenses
boolean
0.9
No
rat.ignoreErrors
false
java.lang.String
No
java.lang.String[]
No
java.lang.String
No
rat.IncludesFile
java.lang.String
No
rat.includesFileCharset
${project.build.sourceEncoding}
java.lang.String
No
java.lang.String
No
rat.InputExcludeFile
java.lang.String
No
java.lang.String[]
No
java.lang.String
No
rat.InputExcludeSize
java.lang.String
No
java.lang.String[]
No
java.lang.String[]
No
java.lang.String
No
java.lang.String
No
rat.InputIncludeFile
java.lang.String
No
java.lang.String[]
No
java.lang.String[]
No
java.lang.String
No
java.lang.String[]
No
org.apache.rat.license.SimpleLicenseFamily[]
0.8
No
java.lang.String
No
java.lang.String
No
rat.LicenseFamiliesApprovedFile
java.lang.String
No
java.lang.String
No
rat.LicenseFamiliesDeniedFile
java.lang.Object[]
No
java.lang.String
No
java.lang.String
No
rat.LicensesApprovedFile
java.lang.String
No
java.lang.String
No
rat.LicensesDeniedFile
java.lang.String
No
rat.ListFamilies
java.lang.String
No
rat.ListLicenses
boolean
No
rat.NoDefaultLicenses
int
No
rat.numUnapprovedLicenses
0
java.lang.String
No
rat.Out
java.lang.String
No
rat.OutputArchive
NOTIFICATION
java.lang.String
No
rat.OutputFamilies
NONE
java.lang.String
No
rat.OutputFile
${project.build.directory}/rat.txt
java.lang.String
No
rat.OutputLicenses
NONE
java.lang.String
No
rat.OutputStandard
ABSENCE
java.lang.String
No
rat.OutputStyle
boolean
No
rat.parseSCMIgnoresAsExcludes
true
java.io.File
No
java.lang.String
No
rat.outputStyle
boolean
No
rat.ScanHiddenDirectories
boolean
0.11
No
rat.skip
false
java.lang.String
No
rat.Stylesheet
org.apache.rat.config.exclusion.StandardCollection
boolean
No
rat.useDefaultExcludes
true
.classpath
and .project
files, the .settings
directory, and so on.boolean
No
rat.useEclipseDefaultExcludes
true
*.iml
, *.ipr
and *.iws
files and the .idea
directory.boolean
No
rat.useIdeaDefaultExcludes
true
target
directory, the cobertura.ser
file, and so on.boolean
No
rat.useMavenDefaultExcludes
true
boolean
No
rat.Xml