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-jmod-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new b8370e7  Format Groovy IT scripts
b8370e7 is described below

commit b8370e709f2cb5eee0eb6f346bf3bd6c669dd498
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 20:37:05 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/base-config-cmds/verify.groovy              |  4 +-
 src/it/base-config-headerfiles/verify.groovy       |  4 +-
 src/it/base-config-legalnotices/verify.groovy      | 10 +--
 src/it/base-config-libs/verify.groovy              | 10 +--
 src/it/base-config/verify.groovy                   | 10 +--
 src/it/base-it/verify.groovy                       |  9 +--
 src/it/describe-base-config/verify.groovy          | 28 ++++----
 src/it/describe-plain/verify.groovy                | 18 +++--
 src/it/list-base-config/verify.groovy              | 28 ++++----
 src/it/list-plain/verify.groovy                    | 28 ++++----
 src/it/mjmod-20-set-main-class/verify.groovy       | 62 ++++++++++--------
 src/it/mjmod-23-path-must-be-dir/verify.groovy     | 76 ++++++++++++----------
 .../verify.groovy                                  | 38 +++++------
 src/it/non-default-config-cmds/verify.groovy       |  4 +-
 .../non-default-config-headerfiles/verify.groovy   |  4 +-
 .../non-default-config-legalnotices/verify.groovy  | 10 +--
 src/it/non-default-config-libs/verify.groovy       | 10 +--
 src/it/non-default-config/verify.groovy            |  4 +-
 18 files changed, 169 insertions(+), 188 deletions(-)

diff --git a/src/it/base-config-cmds/verify.groovy 
b/src/it/base-config-cmds/verify.groovy
index 3c38036..4e70fdb 100644
--- a/src/it/base-config-cmds/verify.groovy
+++ b/src/it/base-config-cmds/verify.groovy
@@ -19,8 +19,8 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-base-config-cmds.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
diff --git a/src/it/base-config-headerfiles/verify.groovy 
b/src/it/base-config-headerfiles/verify.groovy
index 0ee9554..adceeec 100644
--- a/src/it/base-config-headerfiles/verify.groovy
+++ b/src/it/base-config-headerfiles/verify.groovy
@@ -19,8 +19,8 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-base-config-headerfiles.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
diff --git a/src/it/base-config-legalnotices/verify.groovy 
b/src/it/base-config-legalnotices/verify.groovy
index d6b1a01..4a33f2a 100644
--- a/src/it/base-config-legalnotices/verify.groovy
+++ b/src/it/base-config-legalnotices/verify.groovy
@@ -19,17 +19,13 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-base-config-legalnotices.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
 
-def resourceNames = [
-    'legal/first.md',
-    'classes/module-info.class',
-    'classes/myproject/HelloWorld.class',
-] as Set
+def resourceNames = ['legal/first.md', 'classes/module-info.class', 
'classes/myproject/HelloWorld.class',] as Set
 
 def contents = [] as Set
 
diff --git a/src/it/base-config-libs/verify.groovy 
b/src/it/base-config-libs/verify.groovy
index b4a4b2c..8b2c74e 100644
--- a/src/it/base-config-libs/verify.groovy
+++ b/src/it/base-config-libs/verify.groovy
@@ -19,17 +19,13 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-base-config-libs.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
 
-def resourceNames = [
-    'lib/first.so',
-    'classes/module-info.class',
-    'classes/myproject/HelloWorld.class',
-] as Set
+def resourceNames = ['lib/first.so', 'classes/module-info.class', 
'classes/myproject/HelloWorld.class',] as Set
 
 def contents = [] as Set
 
diff --git a/src/it/base-config/verify.groovy b/src/it/base-config/verify.groovy
index 55859ca..2fcbf15 100644
--- a/src/it/base-config/verify.groovy
+++ b/src/it/base-config/verify.groovy
@@ -19,17 +19,13 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 'jmods/maven-jmod-plugin-base-config.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
 
-def resourceNames = [
-    'conf/config.test',
-    'classes/module-info.class',
-    'classes/myproject/HelloWorld.class',
-] as Set
+def resourceNames = ['conf/config.test', 'classes/module-info.class', 
'classes/myproject/HelloWorld.class',] as Set
 
 def contents = [] as Set
 
diff --git a/src/it/base-it/verify.groovy b/src/it/base-it/verify.groovy
index f822434..4ac65bb 100644
--- a/src/it/base-it/verify.groovy
+++ b/src/it/base-it/verify.groovy
@@ -19,16 +19,13 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 'jmods/maven-jmod-plugin-base-it.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
 
-def resourceNames = [
-    'classes/module-info.class',
-    'classes/myproject/HelloWorld.class',
-] as Set
+def resourceNames = ['classes/module-info.class', 
'classes/myproject/HelloWorld.class',] as Set
 
 
 def contents = [] as Set
diff --git a/src/it/describe-base-config/verify.groovy 
b/src/it/describe-base-config/verify.groovy
index adf5fc1..4978a8d 100644
--- a/src/it/describe-base-config/verify.groovy
+++ b/src/it/describe-base-config/verify.groovy
@@ -17,23 +17,23 @@
  * under the License.
  */
 
-def expectedDescriptorLines = [
-  '[email protected]',
-  'exports myproject',
-  'requires java.base'
-] as Set
+def expectedDescriptorLines = ['[email protected]', 
'exports myproject', 'requires java.base'] as Set
 
-def buildLog = new File (basedir, 'build.log')
+def buildLog = new File(basedir, 'build.log')
 
 def describeLines = buildLog.readLines()
-                            .dropWhile{ it != '[INFO] 
[email protected]' }
-                            .takeWhile{ !it.startsWith('[INFO] ---') }
-                            // Maven 4 emits install-related '[INFO] Copying 
... to project local repository'
-                            // lines and '[DEBUG] Reading file model from ...' 
lines between the jmod
-                            // describe output and the next mojo header; 
restrict to '[INFO]' lines and
-                            // reject Copying lines so neither leaks into the 
asserted Set.
-                            .findAll{ it.startsWith('[INFO] ') && 
!it.startsWith('[INFO] Copying ') }
-                            .collect{ it - '[INFO] ' } as Set
+        .dropWhile{
+            it != '[INFO] [email protected]'
+        }
+        .takeWhile{ !it.startsWith('[INFO] ---') }
+        // Maven 4 emits install-related '[INFO] Copying ... to project local 
repository'
+        // lines and '[DEBUG] Reading file model from ...' lines between the 
jmod
+        // describe output and the next mojo header; restrict to '[INFO]' 
lines and
+        // reject Copying lines so neither leaks into the asserted Set.
+        .findAll{
+            it.startsWith('[INFO] ') && !it.startsWith('[INFO] Copying ')
+        }
+        .collect{ it - '[INFO] ' } as Set
 
 assert expectedDescriptorLines == describeLines
 
diff --git a/src/it/describe-plain/verify.groovy 
b/src/it/describe-plain/verify.groovy
index 9050b36..f58eb28 100644
--- a/src/it/describe-plain/verify.groovy
+++ b/src/it/describe-plain/verify.groovy
@@ -17,18 +17,16 @@
  * under the License.
  */
 
-def expectedDescriptorLines = [
-  '[email protected]',
-  'exports myproject',
-  'requires java.base'
-] as Set
+def expectedDescriptorLines = ['[email protected]', 
'exports myproject', 'requires java.base'] as Set
 
-def buildLog = new File (basedir, 'build.log')
+def buildLog = new File(basedir, 'build.log')
 
 def describeLines = buildLog.readLines()
-                            .dropWhile{ it != '[INFO] 
[email protected]' } 
-                            .takeWhile{ !it.startsWith('[INFO] ---') }
-                            .grep()
-                            .collect{ it - '[INFO] ' } as Set
+        .dropWhile{
+            it != '[INFO] [email protected]'
+        }
+        .takeWhile{ !it.startsWith('[INFO] ---') }
+        .grep()
+        .collect{ it - '[INFO] ' } as Set
 
 assert expectedDescriptorLines == describeLines
diff --git a/src/it/list-base-config/verify.groovy 
b/src/it/list-base-config/verify.groovy
index dd125ed..ddc7348 100644
--- a/src/it/list-base-config/verify.groovy
+++ b/src/it/list-base-config/verify.groovy
@@ -17,23 +17,21 @@
  * under the License.
  */
 
-def resourceNames = [
-    'conf/config.test',
-    'classes/module-info.class',
-    'classes/myproject/HelloWorld.class',
-] as Set
+def resourceNames = ['conf/config.test', 'classes/module-info.class', 
'classes/myproject/HelloWorld.class',] as Set
 
-def buildLog = new File (basedir, 'build.log')
+def buildLog = new File(basedir, 'build.log')
 
 def listLines = buildLog.readLines()
-                            .dropWhile{ !it.startsWith('[INFO] The following 
files are contained in the module file') }
-                            .drop(1)
-                            .takeWhile{ !it.startsWith('[INFO] ---') }
-                            .findAll{ it.startsWith('[INFO] ')}
-                            // Maven 4 emits install-related '[INFO] Copying 
... to project local repository'
-                            // lines between the jmod plugin's output and the 
next mojo header; reject
-                            // them so they don't leak into the asserted Set.
-                            .findAll{ !it.startsWith('[INFO] Copying ') }
-                            .collect{ it - '[INFO] ' } as Set
+        .dropWhile{
+            !it.startsWith('[INFO] The following files are contained in the 
module file')
+        }
+        .drop(1)
+        .takeWhile{ !it.startsWith('[INFO] ---') }
+        .findAll{ it.startsWith('[INFO] ')}
+        // Maven 4 emits install-related '[INFO] Copying ... to project local 
repository'
+        // lines between the jmod plugin's output and the next mojo header; 
reject
+        // them so they don't leak into the asserted Set.
+        .findAll{ !it.startsWith('[INFO] Copying ') }
+        .collect{ it - '[INFO] ' } as Set
 
 assert listLines == resourceNames
diff --git a/src/it/list-plain/verify.groovy b/src/it/list-plain/verify.groovy
index dd125ed..ddc7348 100644
--- a/src/it/list-plain/verify.groovy
+++ b/src/it/list-plain/verify.groovy
@@ -17,23 +17,21 @@
  * under the License.
  */
 
-def resourceNames = [
-    'conf/config.test',
-    'classes/module-info.class',
-    'classes/myproject/HelloWorld.class',
-] as Set
+def resourceNames = ['conf/config.test', 'classes/module-info.class', 
'classes/myproject/HelloWorld.class',] as Set
 
-def buildLog = new File (basedir, 'build.log')
+def buildLog = new File(basedir, 'build.log')
 
 def listLines = buildLog.readLines()
-                            .dropWhile{ !it.startsWith('[INFO] The following 
files are contained in the module file') }
-                            .drop(1)
-                            .takeWhile{ !it.startsWith('[INFO] ---') }
-                            .findAll{ it.startsWith('[INFO] ')}
-                            // Maven 4 emits install-related '[INFO] Copying 
... to project local repository'
-                            // lines between the jmod plugin's output and the 
next mojo header; reject
-                            // them so they don't leak into the asserted Set.
-                            .findAll{ !it.startsWith('[INFO] Copying ') }
-                            .collect{ it - '[INFO] ' } as Set
+        .dropWhile{
+            !it.startsWith('[INFO] The following files are contained in the 
module file')
+        }
+        .drop(1)
+        .takeWhile{ !it.startsWith('[INFO] ---') }
+        .findAll{ it.startsWith('[INFO] ')}
+        // Maven 4 emits install-related '[INFO] Copying ... to project local 
repository'
+        // lines between the jmod plugin's output and the next mojo header; 
reject
+        // them so they don't leak into the asserted Set.
+        .findAll{ !it.startsWith('[INFO] Copying ') }
+        .collect{ it - '[INFO] ' } as Set
 
 assert listLines == resourceNames
diff --git a/src/it/mjmod-20-set-main-class/verify.groovy 
b/src/it/mjmod-20-set-main-class/verify.groovy
index 5886d7e..2571f30 100644
--- a/src/it/mjmod-20-set-main-class/verify.groovy
+++ b/src/it/mjmod-20-set-main-class/verify.groovy
@@ -20,57 +20,63 @@
 import java.util.jar.JarEntry
 import java.util.jar.JarFile
 
-validateArtifact( "world", [ "classes/module-info.class", 
"classes/myproject/world/World.class" ] )
-validateArtifact( "greetings", [ "classes/module-info.class", 
"classes/myproject/greetings/Main.class" ] )
+validateArtifact("world", ["classes/module-info.class", 
"classes/myproject/world/World.class"])
+validateArtifact("greetings", ["classes/module-info.class", 
"classes/myproject/greetings/Main.class"])
 
 def buildLog = new File(basedir,'build.log')
 
 def describeLines = buildLog.readLines()
-                            .dropWhile{ it != '[INFO] 
[email protected]' } // start line, inclusive
-                            .takeWhile{ !it.startsWith('[INFO] ---') }         
   // end line, inclusive
-                            // Maven 4 emits install-related '[INFO] Copying 
... to project local repository'
-                            // lines and '[DEBUG] Reading file model from ...' 
lines between the jmod
-                            // describe output and the next mojo header; 
restrict to '[INFO]' lines and
-                            // reject Copying lines so neither leaks into the 
asserted Set.
-                            .findAll{ it.startsWith('[INFO] ') && 
!it.startsWith('[INFO] Copying ') }
-                            .collect{ it - '[INFO] ' } as Set                  
      // strip loglevel
+        .dropWhile{
+            it != '[INFO] [email protected]'
+        } // start line, inclusive
+        .takeWhile{
+            !it.startsWith('[INFO] ---')
+        } // end line, inclusive
+        // Maven 4 emits install-related '[INFO] Copying ... to project local 
repository'
+        // lines and '[DEBUG] Reading file model from ...' lines between the 
jmod
+        // describe output and the next mojo header; restrict to '[INFO]' 
lines and
+        // reject Copying lines so neither leaks into the asserted Set.
+        .findAll{
+            it.startsWith('[INFO] ') && !it.startsWith('[INFO] Copying ')
+        }
+        .collect{
+            it - '[INFO] '
+        } as Set // strip loglevel
 
 def expectedLines = [
-                "[email protected]",
-                "requires java.base mandated",
-                "requires myproject.world",
-                "contains myproject.greetings",
-                "main-class myproject.greetings.Main"] as Set
+    "[email protected]",
+    "requires java.base mandated",
+    "requires myproject.world",
+    "contains myproject.greetings",
+    "main-class myproject.greetings.Main"
+] as Set
 
 assert describeLines == expectedLines
 
-def validateArtifact(module, resourceNames)
-{
-    println( "Checking if ${basedir}/${module}/target exists." )
-    def targetDir = new File( basedir, "/${module}/target" )
+def validateArtifact(module, resourceNames) {
+    println("Checking if ${basedir}/${module}/target exists.")
+    def targetDir = new File(basedir, "/${module}/target")
     assert targetDir.isDirectory()
 
-    File artifact = new File( targetDir, "/jmods/myproject.${module}.jmod" )
+    File artifact = new File(targetDir, "/jmods/myproject.${module}.jmod")
     assert artifact.isFile()
 
     Set contents = new HashSet()
 
-    JarFile jar = new JarFile( artifact )
+    JarFile jar = new JarFile(artifact)
     Enumeration jarEntries = jar.entries()
-    while ( jarEntries.hasMoreElements() )
-    {
+    while (jarEntries.hasMoreElements()) {
         JarEntry entry = (JarEntry) jarEntries.nextElement()
-        println( "Current entry: ${entry}" )
-        if ( !entry.isDirectory() )
-        {
+        println("Current entry: ${entry}")
+        if (!entry.isDirectory()) {
             // Only compare files
-            contents.add( entry.getName() )
+            contents.add(entry.getName())
         }
     }
 
     assert resourceNames.size() == contents.size()
 
     resourceNames.each{ artifactName ->
-        assert contents.contains( artifactName )
+        assert contents.contains(artifactName)
     }
 }
diff --git a/src/it/mjmod-23-path-must-be-dir/verify.groovy 
b/src/it/mjmod-23-path-must-be-dir/verify.groovy
index 26ee6f9..297f5fa 100644
--- a/src/it/mjmod-23-path-must-be-dir/verify.groovy
+++ b/src/it/mjmod-23-path-must-be-dir/verify.groovy
@@ -20,66 +20,72 @@
 import java.util.jar.JarEntry
 import java.util.jar.JarFile
 
-validateArtifact( "world", "/myproject.world-99.0.jar",
-        [ "module-info.class",
-          "META-INF/maven/org.apache.maven.plugins/myproject.world/pom.xml",
-          "myproject/world/World.class",
-          
"META-INF/maven/org.apache.maven.plugins/myproject.world/pom.properties",
-          "META-INF/MANIFEST.MF"
+validateArtifact("world", "/myproject.world-99.0.jar",
+        [
+            "module-info.class",
+            "META-INF/maven/org.apache.maven.plugins/myproject.world/pom.xml",
+            "myproject/world/World.class",
+            
"META-INF/maven/org.apache.maven.plugins/myproject.world/pom.properties",
+            "META-INF/MANIFEST.MF"
         ]
 )
-validateArtifact( "greetings", "/jmods/myproject.greetings.jmod",
-        [ "classes/module-info.class",
-          "classes/myproject/greetings/Main.class" ] )
+validateArtifact("greetings", "/jmods/myproject.greetings.jmod",
+        ["classes/module-info.class", 
"classes/myproject/greetings/Main.class"])
 
 def buildLog = new File(basedir,'build.log')
 
 def describeLines = buildLog.readLines()
-                            .dropWhile{ it != '[INFO] 
[email protected]' } // start line, inclusive
-                            .takeWhile{ !it.startsWith('[INFO] ---') }         
   // end line, inclusive
-                            // Maven 4 emits install-related '[INFO] Copying 
... to project local repository'
-                            // lines and '[DEBUG] Reading file model from ...' 
lines between the jmod
-                            // describe output and the next mojo header; 
restrict to '[INFO]' lines and
-                            // reject Copying lines so neither leaks into the 
asserted Set.
-                            .findAll{ it.startsWith('[INFO] ') && 
!it.startsWith('[INFO] Copying ') }
-                            .collect{ it - '[INFO] ' } as Set                  
      // strip loglevel
+        .dropWhile{
+            it != '[INFO] [email protected]'
+        } // start line, inclusive
+        .takeWhile{
+            !it.startsWith('[INFO] ---')
+        } // end line, inclusive
+        // Maven 4 emits install-related '[INFO] Copying ... to project local 
repository'
+        // lines and '[DEBUG] Reading file model from ...' lines between the 
jmod
+        // describe output and the next mojo header; restrict to '[INFO]' 
lines and
+        // reject Copying lines so neither leaks into the asserted Set.
+        .findAll{
+            it.startsWith('[INFO] ') && !it.startsWith('[INFO] Copying ')
+        }
+        .collect{
+            it - '[INFO] '
+        } as Set // strip loglevel
 
 def expectedLines = [
-                "[email protected]",
-                "requires java.base mandated",
-                "requires myproject.world",
-                "contains myproject.greetings",
-                "main-class myproject.greetings.Main"] as Set
+    "[email protected]",
+    "requires java.base mandated",
+    "requires myproject.world",
+    "contains myproject.greetings",
+    "main-class myproject.greetings.Main"
+] as Set
 
 assert describeLines == expectedLines
 
-def validateArtifact(module, String filename, resourceNames)
-{
-    println( "Checking if ${basedir}/${module}/target exists." )
-    def targetDir = new File( basedir, "/${module}/target" )
+def validateArtifact(module, String filename, resourceNames) {
+    println("Checking if ${basedir}/${module}/target exists.")
+    def targetDir = new File(basedir, "/${module}/target")
     assert targetDir.isDirectory()
 
-    File artifact = new File( targetDir, filename )
+    File artifact = new File(targetDir, filename)
     assert artifact.isFile()
 
     Set contents = new HashSet()
 
-    JarFile jar = new JarFile( artifact )
+    JarFile jar = new JarFile(artifact)
     Enumeration jarEntries = jar.entries()
-    while ( jarEntries.hasMoreElements() )
-    {
+    while (jarEntries.hasMoreElements()) {
         JarEntry entry = (JarEntry) jarEntries.nextElement()
-        println( "Current entry: ${entry}" )
-        if ( !entry.isDirectory() )
-        {
+        println("Current entry: ${entry}")
+        if (!entry.isDirectory()) {
             // Only compare files
-            contents.add( entry.getName() )
+            contents.add(entry.getName())
         }
     }
 
     assert resourceNames.size() == contents.size()
 
     resourceNames.each{ artifactName ->
-        assert contents.contains( artifactName )
+        assert contents.contains(artifactName)
     }
 }
diff --git a/src/it/mjmod-8-generate-jmod-in-other-project/verify.groovy 
b/src/it/mjmod-8-generate-jmod-in-other-project/verify.groovy
index eda2a6d..4fa5bf9 100644
--- a/src/it/mjmod-8-generate-jmod-in-other-project/verify.groovy
+++ b/src/it/mjmod-8-generate-jmod-in-other-project/verify.groovy
@@ -21,44 +21,42 @@ import java.util.jar.JarEntry
 import java.util.jar.JarFile
 
 
-println( "Checking if ${basedir}/about-cli-app/target exists." )
-File target = new File( basedir, "/about-cli-app/target" )
+println("Checking if ${basedir}/about-cli-app/target exists.")
+File target = new File(basedir, "/about-cli-app/target")
 assert target.isDirectory()
 
-File artifact = new File( basedir, 
"/about-cli-distribution-jmod/target/jmods/about-cli-distribution-jmod.jmod" )
+File artifact = new File(basedir, 
"/about-cli-distribution-jmod/target/jmods/about-cli-distribution-jmod.jmod")
 assert artifact.isFile()
 
 String[] resourceNames = [
-        "classes/module-info.class",
-        "classes/META-INF/MANIFEST.MF",
-        "classes/mymodule/about/cli/Main.class",
-        
"classes/META-INF/maven/org.apache.maven.plugins/about-cli-app/pom.xml",
-        
"classes/META-INF/maven/org.apache.maven.plugins/about-cli-app/pom.properties",
-        "conf/about.yaml",
-        "bin/about"
+    "classes/module-info.class",
+    "classes/META-INF/MANIFEST.MF",
+    "classes/mymodule/about/cli/Main.class",
+    "classes/META-INF/maven/org.apache.maven.plugins/about-cli-app/pom.xml",
+    
"classes/META-INF/maven/org.apache.maven.plugins/about-cli-app/pom.properties",
+    "conf/about.yaml",
+    "bin/about"
 ]
 
 Set contents = new HashSet()
 
-JarFile jar = new JarFile( artifact )
+JarFile jar = new JarFile(artifact)
 Enumeration jarEntries = jar.entries()
-while ( jarEntries.hasMoreElements() )
-{
+while (jarEntries.hasMoreElements()) {
     JarEntry entry = (JarEntry) jarEntries.nextElement()
-    println( "Current entry: ${entry}" )
-    if ( !entry.isDirectory() )
-    {
+    println("Current entry: ${entry}")
+    if (!entry.isDirectory()) {
         // Only compare files
-        contents.add( entry.getName() )
+        contents.add(entry.getName())
     }
 }
 
-println( "Comparing the expected number of files with the actual number of 
files" )
+println("Comparing the expected number of files with the actual number of 
files")
 assert resourceNames.length == contents.size()
 
 resourceNames.each{ artifactName ->
-    println( "Does ${artifactName} exist in content." )
-    assert contents.contains( artifactName )
+    println("Does ${artifactName} exist in content.")
+    assert contents.contains(artifactName)
 }
 
 return true
\ No newline at end of file
diff --git a/src/it/non-default-config-cmds/verify.groovy 
b/src/it/non-default-config-cmds/verify.groovy
index 4f3ef6d..2dccafa 100644
--- a/src/it/non-default-config-cmds/verify.groovy
+++ b/src/it/non-default-config-cmds/verify.groovy
@@ -19,8 +19,8 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-non-default-config-cmds.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
diff --git a/src/it/non-default-config-headerfiles/verify.groovy 
b/src/it/non-default-config-headerfiles/verify.groovy
index 3c6f276..d8fa4d1 100644
--- a/src/it/non-default-config-headerfiles/verify.groovy
+++ b/src/it/non-default-config-headerfiles/verify.groovy
@@ -19,8 +19,8 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-non-default-config-headerfiles.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
diff --git a/src/it/non-default-config-legalnotices/verify.groovy 
b/src/it/non-default-config-legalnotices/verify.groovy
index f2e3f70..0a74cd7 100644
--- a/src/it/non-default-config-legalnotices/verify.groovy
+++ b/src/it/non-default-config-legalnotices/verify.groovy
@@ -19,17 +19,13 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-non-default-config-legalnotices.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
 
-def resourceNames = [
-    'legal/non-first.md',
-    'classes/module-info.class',
-    'classes/myproject/HelloWorld.class',
-] as Set
+def resourceNames = ['legal/non-first.md', 'classes/module-info.class', 
'classes/myproject/HelloWorld.class',] as Set
 
 def contents = [] as Set
 
diff --git a/src/it/non-default-config-libs/verify.groovy 
b/src/it/non-default-config-libs/verify.groovy
index 4e064a5..c9692ff 100644
--- a/src/it/non-default-config-libs/verify.groovy
+++ b/src/it/non-default-config-libs/verify.groovy
@@ -19,17 +19,13 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-non-default-config-libs.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'
 
-def resourceNames = [
-    'lib/non-first.so',
-    'classes/module-info.class',
-    'classes/myproject/HelloWorld.class',
-] as Set
+def resourceNames = ['lib/non-first.so', 'classes/module-info.class', 
'classes/myproject/HelloWorld.class',] as Set
 
 def contents = [] as Set
 
diff --git a/src/it/non-default-config/verify.groovy 
b/src/it/non-default-config/verify.groovy
index 628bb20..3f579a0 100644
--- a/src/it/non-default-config/verify.groovy
+++ b/src/it/non-default-config/verify.groovy
@@ -19,8 +19,8 @@
 
 import java.util.jar.*
 
-def target = new File( basedir, 'target' )
-assert ( target.exists() && target.isDirectory() ) : 'target file is missing 
or not a directory.'
+def target = new File(basedir, 'target')
+assert (target.exists() && target.isDirectory()) : 'target file is missing or 
not a directory.'
 
 def artifact = new File( target, 
'jmods/maven-jmod-plugin-non-default-config.jmod' )
 assert ( artifact.exists() && artifact.isFile() ) : 'target file is missing or 
a directory.'

Reply via email to