You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/09/20 13:17:52 UTC
(maven-war-plugin) branch master updated (5c48616 -> a2ed776)
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git
from 5c48616 Drop the test-scoped maven-compat dependency
new 47c8e79 Rename the BeanShell IT scripts ahead of porting them
new a2ed776 Port the IT scripts from BeanShell to Groovy
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/it/MWAR-129/{verify.bsh => verify.groovy} | 0
src/it/MWAR-131/{verify.bsh => verify.groovy} | 0
src/it/MWAR-133/{verify.bsh => verify.groovy} | 4 ++--
src/it/MWAR-139/{verify.bsh => verify.groovy} | 4 ++--
src/it/MWAR-143/{verify.bsh => verify.groovy} | 4 ++--
src/it/MWAR-167/{verify.bsh => verify.groovy} | 0
src/it/MWAR-240/{verify.bsh => verify.groovy} | 4 ++--
src/it/MWAR-326/{verify.bsh => verify.groovy} | 0
src/it/MWAR-350/{verify.bsh => verify.groovy} | 0
src/it/MWAR-396_servlet30/{verify.bsh => verify.groovy} | 0
.../MWAR-430_jakarta-servlet/{verify.bsh => verify.groovy} | 0
src/it/MWAR-450/{verify.bsh => verify.groovy} | 8 ++++----
src/it/MWAR-62/{verify.bsh => verify.groovy} | 0
src/it/MWAR-96/{verify.bsh => verify.groovy} | 0
src/it/archiveClasses/{verify.bsh => verify.groovy} | 12 ++++++------
src/it/default/{verify.bsh => verify.groovy} | 12 ++++++------
src/it/manifest-content/{verify.bsh => verify.groovy} | 0
src/it/overlay-excludes/{verify.bsh => verify.groovy} | 0
.../overlay-keeps-contextxml/{verify.bsh => verify.groovy} | 0
.../{verify.bsh => verify.groovy} | 0
src/it/simple-war-no-webxml/{verify.bsh => verify.groovy} | 0
src/it/simple-war-project/{verify.bsh => verify.groovy} | 0
.../{verify.bsh => verify.groovy} | 2 +-
src/it/web-resources-filtering/{verify.bsh => verify.groovy} | 4 ++--
24 files changed, 27 insertions(+), 27 deletions(-)
rename src/it/MWAR-129/{verify.bsh => verify.groovy} (100%)
rename src/it/MWAR-131/{verify.bsh => verify.groovy} (100%)
rename src/it/MWAR-133/{verify.bsh => verify.groovy} (91%)
rename src/it/MWAR-139/{verify.bsh => verify.groovy} (92%)
rename src/it/MWAR-143/{verify.bsh => verify.groovy} (96%)
rename src/it/MWAR-167/{verify.bsh => verify.groovy} (100%)
rename src/it/MWAR-240/{verify.bsh => verify.groovy} (97%)
rename src/it/MWAR-326/{verify.bsh => verify.groovy} (100%)
rename src/it/MWAR-350/{verify.bsh => verify.groovy} (100%)
rename src/it/MWAR-396_servlet30/{verify.bsh => verify.groovy} (100%)
rename src/it/MWAR-430_jakarta-servlet/{verify.bsh => verify.groovy} (100%)
rename src/it/MWAR-450/{verify.bsh => verify.groovy} (91%)
rename src/it/MWAR-62/{verify.bsh => verify.groovy} (100%)
rename src/it/MWAR-96/{verify.bsh => verify.groovy} (100%)
rename src/it/archiveClasses/{verify.bsh => verify.groovy} (95%)
rename src/it/default/{verify.bsh => verify.groovy} (95%)
rename src/it/manifest-content/{verify.bsh => verify.groovy} (100%)
rename src/it/overlay-excludes/{verify.bsh => verify.groovy} (100%)
rename src/it/overlay-keeps-contextxml/{verify.bsh => verify.groovy} (100%)
rename src/it/scoped-dependency-same-artifact/{verify.bsh => verify.groovy} (100%)
rename src/it/simple-war-no-webxml/{verify.bsh => verify.groovy} (100%)
rename src/it/simple-war-project/{verify.bsh => verify.groovy} (100%)
rename src/it/web-resources-filtering-delimiter/{verify.bsh => verify.groovy} (98%)
rename src/it/web-resources-filtering/{verify.bsh => verify.groovy} (95%)
(maven-war-plugin) 01/02: Rename the BeanShell IT scripts ahead of porting them
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git
commit 47c8e79bf1c253f852d43eb6179fe72411205724
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Sep 20 13:52:56 2026 +0200
Rename the BeanShell IT scripts ahead of porting them
---
src/it/MWAR-129/{verify.bsh => verify.groovy} | 0
src/it/MWAR-131/{verify.bsh => verify.groovy} | 0
src/it/MWAR-133/{verify.bsh => verify.groovy} | 0
src/it/MWAR-139/{verify.bsh => verify.groovy} | 0
src/it/MWAR-143/{verify.bsh => verify.groovy} | 0
src/it/MWAR-167/{verify.bsh => verify.groovy} | 0
src/it/MWAR-240/{verify.bsh => verify.groovy} | 0
src/it/MWAR-326/{verify.bsh => verify.groovy} | 0
src/it/MWAR-350/{verify.bsh => verify.groovy} | 0
src/it/MWAR-396_servlet30/{verify.bsh => verify.groovy} | 0
src/it/MWAR-430_jakarta-servlet/{verify.bsh => verify.groovy} | 0
src/it/MWAR-450/{verify.bsh => verify.groovy} | 0
src/it/MWAR-62/{verify.bsh => verify.groovy} | 0
src/it/MWAR-96/{verify.bsh => verify.groovy} | 0
src/it/archiveClasses/{verify.bsh => verify.groovy} | 0
src/it/default/{verify.bsh => verify.groovy} | 0
src/it/manifest-content/{verify.bsh => verify.groovy} | 0
src/it/overlay-excludes/{verify.bsh => verify.groovy} | 0
src/it/overlay-keeps-contextxml/{verify.bsh => verify.groovy} | 0
src/it/scoped-dependency-same-artifact/{verify.bsh => verify.groovy} | 0
src/it/simple-war-no-webxml/{verify.bsh => verify.groovy} | 0
src/it/simple-war-project/{verify.bsh => verify.groovy} | 0
src/it/web-resources-filtering-delimiter/{verify.bsh => verify.groovy} | 0
src/it/web-resources-filtering/{verify.bsh => verify.groovy} | 0
24 files changed, 0 insertions(+), 0 deletions(-)
diff --git a/src/it/MWAR-129/verify.bsh b/src/it/MWAR-129/verify.groovy
similarity index 100%
rename from src/it/MWAR-129/verify.bsh
rename to src/it/MWAR-129/verify.groovy
diff --git a/src/it/MWAR-131/verify.bsh b/src/it/MWAR-131/verify.groovy
similarity index 100%
rename from src/it/MWAR-131/verify.bsh
rename to src/it/MWAR-131/verify.groovy
diff --git a/src/it/MWAR-133/verify.bsh b/src/it/MWAR-133/verify.groovy
similarity index 100%
rename from src/it/MWAR-133/verify.bsh
rename to src/it/MWAR-133/verify.groovy
diff --git a/src/it/MWAR-139/verify.bsh b/src/it/MWAR-139/verify.groovy
similarity index 100%
rename from src/it/MWAR-139/verify.bsh
rename to src/it/MWAR-139/verify.groovy
diff --git a/src/it/MWAR-143/verify.bsh b/src/it/MWAR-143/verify.groovy
similarity index 100%
rename from src/it/MWAR-143/verify.bsh
rename to src/it/MWAR-143/verify.groovy
diff --git a/src/it/MWAR-167/verify.bsh b/src/it/MWAR-167/verify.groovy
similarity index 100%
rename from src/it/MWAR-167/verify.bsh
rename to src/it/MWAR-167/verify.groovy
diff --git a/src/it/MWAR-240/verify.bsh b/src/it/MWAR-240/verify.groovy
similarity index 100%
rename from src/it/MWAR-240/verify.bsh
rename to src/it/MWAR-240/verify.groovy
diff --git a/src/it/MWAR-326/verify.bsh b/src/it/MWAR-326/verify.groovy
similarity index 100%
rename from src/it/MWAR-326/verify.bsh
rename to src/it/MWAR-326/verify.groovy
diff --git a/src/it/MWAR-350/verify.bsh b/src/it/MWAR-350/verify.groovy
similarity index 100%
rename from src/it/MWAR-350/verify.bsh
rename to src/it/MWAR-350/verify.groovy
diff --git a/src/it/MWAR-396_servlet30/verify.bsh b/src/it/MWAR-396_servlet30/verify.groovy
similarity index 100%
rename from src/it/MWAR-396_servlet30/verify.bsh
rename to src/it/MWAR-396_servlet30/verify.groovy
diff --git a/src/it/MWAR-430_jakarta-servlet/verify.bsh b/src/it/MWAR-430_jakarta-servlet/verify.groovy
similarity index 100%
rename from src/it/MWAR-430_jakarta-servlet/verify.bsh
rename to src/it/MWAR-430_jakarta-servlet/verify.groovy
diff --git a/src/it/MWAR-450/verify.bsh b/src/it/MWAR-450/verify.groovy
similarity index 100%
rename from src/it/MWAR-450/verify.bsh
rename to src/it/MWAR-450/verify.groovy
diff --git a/src/it/MWAR-62/verify.bsh b/src/it/MWAR-62/verify.groovy
similarity index 100%
rename from src/it/MWAR-62/verify.bsh
rename to src/it/MWAR-62/verify.groovy
diff --git a/src/it/MWAR-96/verify.bsh b/src/it/MWAR-96/verify.groovy
similarity index 100%
rename from src/it/MWAR-96/verify.bsh
rename to src/it/MWAR-96/verify.groovy
diff --git a/src/it/archiveClasses/verify.bsh b/src/it/archiveClasses/verify.groovy
similarity index 100%
rename from src/it/archiveClasses/verify.bsh
rename to src/it/archiveClasses/verify.groovy
diff --git a/src/it/default/verify.bsh b/src/it/default/verify.groovy
similarity index 100%
rename from src/it/default/verify.bsh
rename to src/it/default/verify.groovy
diff --git a/src/it/manifest-content/verify.bsh b/src/it/manifest-content/verify.groovy
similarity index 100%
rename from src/it/manifest-content/verify.bsh
rename to src/it/manifest-content/verify.groovy
diff --git a/src/it/overlay-excludes/verify.bsh b/src/it/overlay-excludes/verify.groovy
similarity index 100%
rename from src/it/overlay-excludes/verify.bsh
rename to src/it/overlay-excludes/verify.groovy
diff --git a/src/it/overlay-keeps-contextxml/verify.bsh b/src/it/overlay-keeps-contextxml/verify.groovy
similarity index 100%
rename from src/it/overlay-keeps-contextxml/verify.bsh
rename to src/it/overlay-keeps-contextxml/verify.groovy
diff --git a/src/it/scoped-dependency-same-artifact/verify.bsh b/src/it/scoped-dependency-same-artifact/verify.groovy
similarity index 100%
rename from src/it/scoped-dependency-same-artifact/verify.bsh
rename to src/it/scoped-dependency-same-artifact/verify.groovy
diff --git a/src/it/simple-war-no-webxml/verify.bsh b/src/it/simple-war-no-webxml/verify.groovy
similarity index 100%
rename from src/it/simple-war-no-webxml/verify.bsh
rename to src/it/simple-war-no-webxml/verify.groovy
diff --git a/src/it/simple-war-project/verify.bsh b/src/it/simple-war-project/verify.groovy
similarity index 100%
rename from src/it/simple-war-project/verify.bsh
rename to src/it/simple-war-project/verify.groovy
diff --git a/src/it/web-resources-filtering-delimiter/verify.bsh b/src/it/web-resources-filtering-delimiter/verify.groovy
similarity index 100%
rename from src/it/web-resources-filtering-delimiter/verify.bsh
rename to src/it/web-resources-filtering-delimiter/verify.groovy
diff --git a/src/it/web-resources-filtering/verify.bsh b/src/it/web-resources-filtering/verify.groovy
similarity index 100%
rename from src/it/web-resources-filtering/verify.bsh
rename to src/it/web-resources-filtering/verify.groovy
(maven-war-plugin) 02/02: Port the IT scripts from BeanShell to Groovy
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git
commit a2ed77652bbce489434a8f0225e83b1c027f943f
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Sep 20 13:56:51 2026 +0200
Port the IT scripts from BeanShell to Groovy
BeanShell is being retired across Maven (apache/maven#13207); the scripts keep the same checks.
---
src/it/MWAR-133/verify.groovy | 4 ++--
src/it/MWAR-139/verify.groovy | 4 ++--
src/it/MWAR-143/verify.groovy | 4 ++--
src/it/MWAR-240/verify.groovy | 4 ++--
src/it/MWAR-450/verify.groovy | 8 ++++----
src/it/archiveClasses/verify.groovy | 12 ++++++------
src/it/default/verify.groovy | 12 ++++++------
src/it/web-resources-filtering-delimiter/verify.groovy | 2 +-
src/it/web-resources-filtering/verify.groovy | 4 ++--
9 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/src/it/MWAR-133/verify.groovy b/src/it/MWAR-133/verify.groovy
index 8898963..5fa3b69 100644
--- a/src/it/MWAR-133/verify.groovy
+++ b/src/it/MWAR-133/verify.groovy
@@ -49,10 +49,10 @@ try
String paramContent = FileUtils.fileRead( filtered );
- int indexOf = paramContent.indexOf( "app.version=${node.version}" );
+ int indexOf = paramContent.indexOf( 'app.version=${node.version}' );
if ( indexOf < 0 )
{
- System.err.println( "filtered.properties was not filtered with the value of ${node.version}" );
+ System.err.println( 'filtered.properties was not filtered with the value of ${node.version}' );
return false;
}
diff --git a/src/it/MWAR-139/verify.groovy b/src/it/MWAR-139/verify.groovy
index 390c0be..1e8a69c 100644
--- a/src/it/MWAR-139/verify.groovy
+++ b/src/it/MWAR-139/verify.groovy
@@ -55,10 +55,10 @@ try
return false;
}
- indexOf = paramContent.indexOf( "<text2>start-${}-end</text2>" );
+ indexOf = paramContent.indexOf( '<text2>start-${}-end</text2>' );
if ( indexOf < 0 )
{
- System.err.println( "filterme.xml does not contains <text2>start-${}-end</text2>" );
+ System.err.println( 'filterme.xml does not contains <text2>start-${}-end</text2>' );
return false;
}
diff --git a/src/it/MWAR-143/verify.groovy b/src/it/MWAR-143/verify.groovy
index 45ed59e..7ba365a 100644
--- a/src/it/MWAR-143/verify.groovy
+++ b/src/it/MWAR-143/verify.groovy
@@ -23,7 +23,7 @@ import org.codehaus.plexus.util.*;
boolean result = true;
-filesAreIdentical( File expected, File current )
+boolean filesAreIdentical( File expected, File current )
throws IOException
{
if ( expected.length() != current.length() )
@@ -105,7 +105,7 @@ try
targetImg = new File( basedir, "war-filter-overlay/target/custom-manifest-1.0-SNAPSHOT/duke-beer.jpg" );
- boolean identical = filesAreIdentical( originalImg, targetImg );
+ identical = filesAreIdentical( originalImg, targetImg );
if ( !identical )
{
diff --git a/src/it/MWAR-240/verify.groovy b/src/it/MWAR-240/verify.groovy
index fec4b9d..d34df55 100644
--- a/src/it/MWAR-240/verify.groovy
+++ b/src/it/MWAR-240/verify.groovy
@@ -35,9 +35,9 @@ try
JarFile jar = new JarFile( jarFile );
- String[] includedEntries = {
+ String[] includedEntries = [
"org/apache/maven/plugin/war/it/Dummy.class",
- };
+ ];
for ( String included : includedEntries )
{
System.out.println( "Checking for existence of " + included );
diff --git a/src/it/MWAR-450/verify.groovy b/src/it/MWAR-450/verify.groovy
index 3e1b808..4e53c2b 100644
--- a/src/it/MWAR-450/verify.groovy
+++ b/src/it/MWAR-450/verify.groovy
@@ -58,7 +58,7 @@ try
return false;
}
Properties properties = new Properties();
- FileInputStream fis = new FileInputStream( myProperties );
+ fis = new FileInputStream( myProperties );
properties.load( fis );
fis.close();
String property = properties.get( "my.property" );
@@ -75,10 +75,10 @@ try
System.err.println( "myfile.txt is missing or is a directory." );
return false;
}
- FileInputStream fis = new FileInputStream ( myfile );
- String paramContent = IOUtil.toString ( fis, "UTF-8" );
+ fis = new FileInputStream ( myfile );
+ paramContent = IOUtil.toString ( fis, "UTF-8" );
System.out.println( "content='" + paramContent + "'" );
- int indexOf = paramContent.indexOf( "Characters that should be encoded in UTF-8: åäö" );
+ indexOf = paramContent.indexOf( "Characters that should be encoded in UTF-8: åäö" );
if ( indexOf < 0 )
{
System.err.println( "Non-ascii characters changed encoding during filtering" );
diff --git a/src/it/archiveClasses/verify.groovy b/src/it/archiveClasses/verify.groovy
index 9b3da75..a9e70aa 100644
--- a/src/it/archiveClasses/verify.groovy
+++ b/src/it/archiveClasses/verify.groovy
@@ -32,11 +32,11 @@ try
return false;
}
- String[] expectedPaths = {
+ String[] expectedPaths = [
"index.html",
"WEB-INF/lib/commons-logging-1.0.3.jar",
"WEB-INF/lib/maven-it-mwar-45-1.0.jar",
- };
+ ];
for ( String path : expectedPaths )
{
File file = new File( explodedDir, path );
@@ -48,10 +48,10 @@ try
}
}
- String[] unexpectedPaths = {
+ String[] unexpectedPaths = [
"WEB-INF/classes/org/apache/maven/it0016/Person.class",
"WEB-INF/lib/servlet-api-2.4.jar",
- };
+ ];
for ( String path : unexpectedPaths )
{
File file = new File( explodedDir, path );
@@ -73,11 +73,11 @@ try
JarFile war = new JarFile( warFile );
- String[] includedEntries = {
+ String[] includedEntries = [
"index.html",
"WEB-INF/lib/maven-it-mwar-45-1.0.jar",
"WEB-INF/lib/commons-logging-1.0.3.jar",
- };
+ ];
for ( String included : includedEntries )
{
System.out.println( "Checking for existence of " + included );
diff --git a/src/it/default/verify.groovy b/src/it/default/verify.groovy
index af15a81..22edc06 100644
--- a/src/it/default/verify.groovy
+++ b/src/it/default/verify.groovy
@@ -32,11 +32,11 @@ try
return false;
}
- String[] expectedPaths = {
+ String[] expectedPaths = [
"index.html",
"WEB-INF/classes/org/apache/maven/it0016/Person.class",
"WEB-INF/lib/commons-logging-1.0.3.jar",
- };
+ ];
for ( String path : expectedPaths )
{
File file = new File( explodedDir, path );
@@ -48,9 +48,9 @@ try
}
}
- String[] unexpectedPaths = {
+ String[] unexpectedPaths = [
"WEB-INF/lib/servlet-api-2.4.jar",
- };
+ ];
for ( String path : unexpectedPaths )
{
File file = new File( explodedDir, path );
@@ -72,10 +72,10 @@ try
JarFile war = new JarFile( warFile );
- String[] includedEntries = {
+ String[] includedEntries = [
"WEB-INF/classes/org/apache/maven/it0016/Person.class",
"WEB-INF/lib/commons-logging-1.0.3.jar",
- };
+ ];
for ( String included : includedEntries )
{
System.out.println( "Checking for existence of " + included );
diff --git a/src/it/web-resources-filtering-delimiter/verify.groovy b/src/it/web-resources-filtering-delimiter/verify.groovy
index dd86ecd..44ea22b 100644
--- a/src/it/web-resources-filtering-delimiter/verify.groovy
+++ b/src/it/web-resources-filtering-delimiter/verify.groovy
@@ -87,7 +87,7 @@ try
}
Properties properties = new Properties();
- FileInputStream fis = new FileInputStream( myProperties );
+ fis = new FileInputStream( myProperties );
properties.load( fis );
fis.close();
diff --git a/src/it/web-resources-filtering/verify.groovy b/src/it/web-resources-filtering/verify.groovy
index 6ea7d17..df04684 100644
--- a/src/it/web-resources-filtering/verify.groovy
+++ b/src/it/web-resources-filtering/verify.groovy
@@ -70,7 +70,7 @@ try
return false;
}
- indexOf = paramContent.indexOf( "<Set name=\"password\">${jdbc.password}</Set>" );
+ indexOf = paramContent.indexOf( '<Set name="password">${jdbc.password}</Set>' );
if ( indexOf < 0 )
{
System.err.println( "jdbc.password has been filtered" );
@@ -94,7 +94,7 @@ try
}
Properties properties = new Properties();
- FileInputStream fis = new FileInputStream( myProperties );
+ fis = new FileInputStream( myProperties );
properties.load( fis );
fis.close();