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:42:11 UTC
(maven-rar-plugin) 02/02: Port the IT scripts from BeanShell to Groovy
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-rar-plugin.git
commit 609fe1984a7622c95831d204ea470f084f614e72
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Sep 20 15:01:47 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/default-extension/verify.groovy | 6 +++---
src/it/default/verify.groovy | 6 +++---
src/it/filtered/verify.groovy | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/it/default-extension/verify.groovy b/src/it/default-extension/verify.groovy
index 78575e1..5eb2f22 100644
--- a/src/it/default-extension/verify.groovy
+++ b/src/it/default-extension/verify.groovy
@@ -35,10 +35,10 @@ try
JarFile jar = new JarFile( jarFile );
- String[] includedEntries = {
+ String[] includedEntries = [
"META-INF/ra.xml",
"SomeResource.txt",
- };
+ ];
for ( String included : includedEntries )
{
System.out.println( "Checking for existence of " + included );
@@ -53,7 +53,7 @@ try
String content = new String(IOUtil.toByteArray( stream ));
- int idx = content.indexOf("${project.version}");
+ int idx = content.indexOf('${project.version}');
if (idx<1) {
System.out.println("SomeResource.txt not filtered");
diff --git a/src/it/default/verify.groovy b/src/it/default/verify.groovy
index 78575e1..5eb2f22 100644
--- a/src/it/default/verify.groovy
+++ b/src/it/default/verify.groovy
@@ -35,10 +35,10 @@ try
JarFile jar = new JarFile( jarFile );
- String[] includedEntries = {
+ String[] includedEntries = [
"META-INF/ra.xml",
"SomeResource.txt",
- };
+ ];
for ( String included : includedEntries )
{
System.out.println( "Checking for existence of " + included );
@@ -53,7 +53,7 @@ try
String content = new String(IOUtil.toByteArray( stream ));
- int idx = content.indexOf("${project.version}");
+ int idx = content.indexOf('${project.version}');
if (idx<1) {
System.out.println("SomeResource.txt not filtered");
diff --git a/src/it/filtered/verify.groovy b/src/it/filtered/verify.groovy
index 91317e6..5dfecaf 100644
--- a/src/it/filtered/verify.groovy
+++ b/src/it/filtered/verify.groovy
@@ -35,12 +35,12 @@ try
JarFile jar = new JarFile( jarFile );
- String[] includedEntries = {
+ String[] includedEntries = [
"META-INF/ra.xml",
"SomeResource.txt",
"ext/wine.txt",
"ext-filtered/wine.txt"
- };
+ ];
for ( String included : includedEntries )
{
System.out.println( "Checking for existence of " + included );
@@ -66,7 +66,7 @@ try
content = new String(IOUtil.toByteArray( stream ));
- idx = content.indexOf("${bestwine}");
+ idx = content.indexOf('${bestwine}');
if (idx<1) {
System.out.println("ext/wine.txt filtered:"+content);