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 87b025e875e651e0a2e1d474234d34b96fbb8f11
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 22:35:12 2026 +0000

    Format Groovy IT scripts
    
    Formatting only: the CONVERSION-phase AST of every file is unchanged. See 
https://github.com/apache/maven-invoker-plugin/issues/811.
---
 src/it/default-extension/verify.groovy | 10 +++-------
 src/it/default/verify.groovy           | 10 +++-------
 src/it/dependencies/verify.groovy      | 16 ++++++----------
 src/it/filtered/verify.groovy          | 12 +++---------
 4 files changed, 15 insertions(+), 33 deletions(-)

diff --git a/src/it/default-extension/verify.groovy 
b/src/it/default-extension/verify.groovy
index f889d96..1bf16f3 100644
--- a/src/it/default-extension/verify.groovy
+++ b/src/it/default-extension/verify.groovy
@@ -19,18 +19,14 @@
 
 import java.util.jar.JarFile
 
-File jarFile = new File( basedir, "target/maven-it-it0070-1.0-SNAPSHOT.rar" )
+File jarFile = new File(basedir, "target/maven-it-it0070-1.0-SNAPSHOT.rar")
 println "Checking for existence of " + jarFile
 assert jarFile.isFile() : "rar file not found"
 
 JarFile jar = new JarFile( jarFile )
 
-String[] includedEntries = [
-    "META-INF/ra.xml",
-    "SomeResource.txt",
-]
-for ( String included : includedEntries )
-{
+String[] includedEntries = ["META-INF/ra.xml", "SomeResource.txt",]
+for ( String included : includedEntries ) {
     println "Checking for existence of " + included
     assert jar.getEntry( included ) != null : "entry not in rar file" + 
included
 }
diff --git a/src/it/default/verify.groovy b/src/it/default/verify.groovy
index f889d96..1bf16f3 100644
--- a/src/it/default/verify.groovy
+++ b/src/it/default/verify.groovy
@@ -19,18 +19,14 @@
 
 import java.util.jar.JarFile
 
-File jarFile = new File( basedir, "target/maven-it-it0070-1.0-SNAPSHOT.rar" )
+File jarFile = new File(basedir, "target/maven-it-it0070-1.0-SNAPSHOT.rar")
 println "Checking for existence of " + jarFile
 assert jarFile.isFile() : "rar file not found"
 
 JarFile jar = new JarFile( jarFile )
 
-String[] includedEntries = [
-    "META-INF/ra.xml",
-    "SomeResource.txt",
-]
-for ( String included : includedEntries )
-{
+String[] includedEntries = ["META-INF/ra.xml", "SomeResource.txt",]
+for ( String included : includedEntries ) {
     println "Checking for existence of " + included
     assert jar.getEntry( included ) != null : "entry not in rar file" + 
included
 }
diff --git a/src/it/dependencies/verify.groovy 
b/src/it/dependencies/verify.groovy
index f86a26d..69c6869 100644
--- a/src/it/dependencies/verify.groovy
+++ b/src/it/dependencies/verify.groovy
@@ -19,25 +19,21 @@
 
 import java.util.jar.JarFile
 
-File rarFile = new File( basedir, "target/rar-dependencies-1.0-SNAPSHOT.rar" )
+File rarFile = new File(basedir, "target/rar-dependencies-1.0-SNAPSHOT.rar")
 assert rarFile.isFile() : "rar file not found: " + rarFile
 
 JarFile rar = new JarFile( rarFile )
-try
-{
+try {
     Set<String> jars = new TreeSet<String>()
-    for ( entry in rar.entries() )
-    {
-        if ( entry.name.endsWith( ".jar" ) )
-        {
+    for ( entry in rar.entries() ) {
+        if ( entry.name.endsWith( ".jar" ) ) {
             jars.add( entry.name )
         }
     }
 
     // compile is copied; optional (excluded by RarMojo), provided and test 
(outside runtime scope) are not
-    assert jars == ( [ "javax.inject-1.jar" ] as Set ) : "unexpected jars in 
rar: " + jars
+    assert jars == ( ["javax.inject-1.jar"] as Set ) : "unexpected jars in 
rar: " + jars
 }
-finally
-{
+finally {
     rar.close()
 }
diff --git a/src/it/filtered/verify.groovy b/src/it/filtered/verify.groovy
index f947633..c48adab 100644
--- a/src/it/filtered/verify.groovy
+++ b/src/it/filtered/verify.groovy
@@ -19,20 +19,14 @@
 
 import java.util.jar.JarFile
 
-File jarFile = new File( basedir, 
"target/maven-it-non-filtered-1.0-SNAPSHOT.rar" )
+File jarFile = new File(basedir, 
"target/maven-it-non-filtered-1.0-SNAPSHOT.rar")
 println "Checking for existence of " + jarFile
 assert jarFile.isFile() : "rar file not found"
 
 JarFile jar = new JarFile( jarFile )
 
-String[] includedEntries = [
-    "META-INF/ra.xml",
-    "SomeResource.txt",
-    "ext/wine.txt",
-    "ext-filtered/wine.txt"
-]
-for ( String included : includedEntries )
-{
+String[] includedEntries = ["META-INF/ra.xml", "SomeResource.txt", 
"ext/wine.txt", "ext-filtered/wine.txt"]
+for ( String included : includedEntries ) {
     println "Checking for existence of " + included
     assert jar.getEntry( included ) != null : "entry not in rar file" + 
included
 }

Reply via email to