This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git
The following commit(s) were added to refs/heads/master by this push:
new 3a9a0881 DomainValidatorTest: added Maven profile to simplfy execution.
3a9a0881 is described below
commit 3a9a08813b1576c605102500659f608c0ca10c8f
Author: Sebb <[email protected]>
AuthorDate: Sun Dec 22 14:30:34 2024 +0000
DomainValidatorTest: added Maven profile to simplfy execution.
[skip ci]
---
pom.xml | 49 ++++++++++++++++++++++
src/changes/changes.xml | 1 +
.../validator/routines/DomainValidatorTest.java | 1 +
3 files changed, 51 insertions(+)
diff --git a/pom.xml b/pom.xml
index 4f4ea641..a569ea75 100644
--- a/pom.xml
+++ b/pom.xml
@@ -316,6 +316,55 @@
</plugins>
</build>
</profile>
+ <profile>
+ <!--
+ Easily run DomainValidatorTest:
+
+ mvn -PDomainValidatorTest
+ -->
+ <id>DomainValidatorTest</id>
+ <properties>
+ <!-- No need for these here -->
+ <rat.skip>true</rat.skip>
+ <enforcer.skip>true</enforcer.skip>
+ </properties>
+ <build>
+ <defaultGoal>exec:java</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+
<mainClass>org.apache.commons.validator.routines.DomainValidatorTest</mainClass>
+ <classpathScope>test</classpathScope>
+ </configuration>
+ </plugin>
+ <!-- Also suppress the build plan check -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-artifact-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>check-buildplan</id>
+ <!-- This won't be run -->
+ <phase>deploy</phase>
+ <goals>
+ <goal>check-buildplan</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<developers>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index e327602f..e2927c74 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -70,6 +70,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Johannes
Weberhofer">InetAddressValidator does not need its instance variable, so uses a
touch less memory.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Pick up
maven-antrun-plugin version from parent POM org.apache:apache.</action>
<!-- ADD -->
+ <action type="add" dev="sebb">DomainValidatorTest: added Maven profile to
simplfy execution.</action>
<action type="add" dev="sebb">IBANValidator: add Honduras from
v99.</action>
<action type="add" dev="sjaranowski" due-to="Slawomir Jaranowski">Improve
IBANValidatorTest by using registry from swift.</action>
<action type="add" dev="sebb" issue="VALIDATOR-495" due-to="Slawomir
Jaranowski">IBANValidator: add Yemen.</action>
diff --git
a/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
b/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
index e8a12448..a2b92ba1 100644
---
a/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
+++
b/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
@@ -263,6 +263,7 @@ public class DomainValidatorTest {
// Download and process local copy of
https://data.iana.org/TLD/tlds-alpha-by-domain.txt
// Check if the internal TLD table is up to date
// Check if the internal TLD tables have any spurious entries
+ // Can be invoked as: mvn -PDomainValidatorTest
public static void main(final String[] a) throws Exception {
// Check the arrays first as this affects later checks
// Doing this here makes it easier when updating the lists