Skip to content

Commit dec5b87

Browse files
committed
RAT-163: Configure tests and use RAT consistently
1 parent 7d02d34 commit dec5b87

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎apache-rat-core/src/main/resources/org/apache/rat/html.xsl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ caption {color:blue;text-align:left;}
7070

7171
<h1>Rat Report</h1>
7272
<div class="center">
73-
<table id="rat-reports summary" cellspacing="0" summary="A snapshot summary of this rat report">
73+
<table id="rat-reports summary" cellspacing="0" summary="A snapshot summary of this RAT report">
7474
<caption>
7575
Table 1: A snapshot summary of this rat report.
7676
</caption>

‎apache-rat-gradle-plugin/build.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ tasks.withType<Jar>().configureEach {
186186
// Do not add any (more or less) dynamic information to jars, because that makes Gradle's
187187
// caching way less efficient. Note that version and Git information are already added to jar
188188
// manifests for release(-like) builds.
189-
"Implementation-Title" to "Apache Rat(TM)",
189+
"Implementation-Title" to "Apache Creadur RAT™",
190190
"Implementation-Vendor" to "Apache Software Foundation",
191191
"Implementation-URL" to "https://creadur.apache.org/rat/",
192192
)

‎apache-rat-gradle-plugin/settings.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
2626
2727
Build aborted...
2828
29-
The Apache Rat Gradle Plugin build requires Java 17.
29+
The Apache Creadur RAT Gradle Plugin build requires Java 17.
3030
Detected Java version: ${JavaVersion.current()}
3131
3232
"""

‎apache-rat-tools/src/main/java/org/apache/rat/documentation/options/GradleOption.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,28 @@
3838
import static java.lang.String.format;
3939

4040
/**
41-
* A representation of a CLI option as a Maven option
41+
* A representation of a CLI option as a Gradle option
4242
*/
4343
public class GradleOption extends AbstractOption {
4444
/**
4545
* Default values for CLI options
4646
*/
4747
private static final Map<Arg, String> DEFAULT_VALUES = new HashMap<>();
4848
/**
49-
* List of CLI options that are not supported by Maven.
49+
* List of CLI options that are not supported by Gradle.
5050
*/
5151
private static final Set<Option> UNSUPPORTED_LIST = new HashSet<>();
5252
/** A mapping of external name to internal name if not standard. */
5353
private static final Map<String, String> RENAME_MAP = new HashMap<>();
5454

5555
/**
56-
* Filter to remove options not supported by Maven.
56+
* Filter to remove options not supported by Gradle.
5757
*/
5858
private static final Predicate<Option> GRADLE_FILTER;
5959

6060
static {
6161
RENAME_MAP.put("addLicense", "add-license");
62-
DEFAULT_VALUES.put(Arg.OUTPUT_FILE, "${project.build.directory}/rat.txt");
62+
DEFAULT_VALUES.put(Arg.OUTPUT_FILE, "${project.build.directory}/rat.txt"); // TODO isn't this HTML?
6363
UNSUPPORTED_LIST.addAll(Arg.DIR.group().getOptions());
6464
UNSUPPORTED_LIST.addAll(Arg.LOG_LEVEL.group().getOptions());
6565
UNSUPPORTED_LIST.add(OptionCollection.HELP);

‎apache-rat-tools/src/main/java/org/apache/rat/tools/GradleGenerator.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import static java.lang.String.format;
4242

4343
/**
44-
* A simple tool to convert CLI options to a Maven Mojo base class.
44+
* A simple tool to convert CLI options to a Gradle base class.
4545
*/
4646
public final class GradleGenerator {
4747

@@ -53,7 +53,7 @@ private static String argsKey(final Option option) {
5353
}
5454

5555
/**
56-
* Creates the Maven MojoClass
56+
* Creates the Gradle base class
5757
* Requires 3 arguments:
5858
* <ol>
5959
* <li>the package name for the class</li>

0 commit comments

Comments
 (0)