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

commit a843076c65ab53c0b1ef39f2b18921405bc616e6
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 19:49:41 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/dangling-symlinks/setup.groovy            | 19 +++++------
 src/it/dangling-symlinks/verify.groovy           |  4 +--
 src/it/default/setup.groovy                      |  4 +--
 src/it/default/verify.groovy                     |  4 +--
 src/it/exclude-default-dirs/verify.groovy        | 18 ++++------
 src/it/file-sets-absolute-paths/verify.groovy    | 11 +++----
 src/it/file-sets-includes-excludes/verify.groovy | 22 ++++---------
 src/it/file-sets-relative-paths/verify.groovy    | 27 +++++----------
 src/it/only-test-clean/setup.groovy              |  4 +--
 src/it/only-test-clean/verify.groovy             |  8 ++---
 src/it/special-characters/setup.groovy           | 20 +++++------
 src/it/special-characters/verify.groovy          |  4 +--
 src/it/symlink-dont-follow/setup.groovy          | 42 +++++++++++-------------
 src/it/symlink-dont-follow/verify.groovy         | 29 +++++-----------
 14 files changed, 86 insertions(+), 130 deletions(-)

diff --git a/src/it/dangling-symlinks/setup.groovy 
b/src/it/dangling-symlinks/setup.groovy
index 8072cb9..4269497 100644
--- a/src/it/dangling-symlinks/setup.groovy
+++ b/src/it/dangling-symlinks/setup.groovy
@@ -23,18 +23,17 @@ import java.util.jar.*
 import java.util.regex.*
 import org.apache.maven.plugins.clean.*
 
-Path targetDir = basedir.toPath().resolve( "target" )
-Path link = targetDir.resolve( "link" )
-Path target = targetDir.resolve( "link-target.txt" )
+Path targetDir = basedir.toPath().resolve("target")
+Path link = targetDir.resolve("link")
+Path target = targetDir.resolve("link-target.txt")
 
-System.out.println( "Creating symlink " + link + " -> " + target )
-Files.createSymbolicLink( link, target, new FileAttribute[0] )
-if ( !Files.exists( link, new LinkOption[0] ) )
-{
-    System.out.println( "FAILURE, platform does not support symlinks, skipping 
test." )
+System.out.println("Creating symlink " + link + " -> " + target)
+Files.createSymbolicLink(link, target, new FileAttribute[0])
+if (!Files.exists(link, new LinkOption[0])) {
+    System.out.println("FAILURE, platform does not support symlinks, skipping 
test.")
 }
 
-System.out.println( "Deleting symlink target " + target )
-Files.delete( target )
+System.out.println("Deleting symlink target " + target)
+Files.delete(target)
 
 return true
diff --git a/src/it/dangling-symlinks/verify.groovy 
b/src/it/dangling-symlinks/verify.groovy
index b7ceb73..41d07d9 100644
--- a/src/it/dangling-symlinks/verify.groovy
+++ b/src/it/dangling-symlinks/verify.groovy
@@ -20,6 +20,6 @@
 import java.util.jar.*
 import java.util.regex.*
 
-File targetDir = new File( basedir, "target" )
-System.out.println( "Checking for absence of " + targetDir )
+File targetDir = new File(basedir, "target")
+System.out.println("Checking for absence of " + targetDir)
 assert !targetDir.exists()
diff --git a/src/it/default/setup.groovy b/src/it/default/setup.groovy
index a2186fc..f37af00 100644
--- a/src/it/default/setup.groovy
+++ b/src/it/default/setup.groovy
@@ -20,6 +20,6 @@
 import java.util.jar.*
 import java.util.regex.*
 
-File targetDir = new File( basedir, "target" )
-System.out.println( "Checking for existence of " + targetDir )
+File targetDir = new File(basedir, "target")
+System.out.println("Checking for existence of " + targetDir)
 assert targetDir.isDirectory()
diff --git a/src/it/default/verify.groovy b/src/it/default/verify.groovy
index b7ceb73..41d07d9 100644
--- a/src/it/default/verify.groovy
+++ b/src/it/default/verify.groovy
@@ -20,6 +20,6 @@
 import java.util.jar.*
 import java.util.regex.*
 
-File targetDir = new File( basedir, "target" )
-System.out.println( "Checking for absence of " + targetDir )
+File targetDir = new File(basedir, "target")
+System.out.println("Checking for absence of " + targetDir)
 assert !targetDir.exists()
diff --git a/src/it/exclude-default-dirs/verify.groovy 
b/src/it/exclude-default-dirs/verify.groovy
index b9c4803..66cbfe3 100644
--- a/src/it/exclude-default-dirs/verify.groovy
+++ b/src/it/exclude-default-dirs/verify.groovy
@@ -30,19 +30,15 @@ String[] expected = [
     "target/site",
     "target/site/index.html",
 ]
-for ( String path : expected )
-{
-    File file = new File( basedir, path )
-    System.out.println( "Checking for existence of " + file )
+for (String path : expected) {
+    File file = new File(basedir, path)
+    System.out.println("Checking for existence of " + file)
     assert file.exists()
 }
 
-String[] unexpected = [
-    "delete-me",
-]
-for ( String path : unexpected )
-{
-    File file = new File( basedir, path )
-    System.out.println( "Checking for absence of " + file )
+String[] unexpected = ["delete-me",]
+for (String path : unexpected) {
+    File file = new File(basedir, path)
+    System.out.println("Checking for absence of " + file)
     assert !file.exists()
 }
diff --git a/src/it/file-sets-absolute-paths/verify.groovy 
b/src/it/file-sets-absolute-paths/verify.groovy
index 551a1c2..6f61ccc 100644
--- a/src/it/file-sets-absolute-paths/verify.groovy
+++ b/src/it/file-sets-absolute-paths/verify.groovy
@@ -20,12 +20,9 @@
 import java.util.jar.*
 import java.util.regex.*
 
-String[] unexpected = [
-    "delete-me",
-]
-for ( String path : unexpected )
-{
-    File file = new File( basedir, path )
-    System.out.println( "Checking for absence of " + file )
+String[] unexpected = ["delete-me",]
+for (String path : unexpected) {
+    File file = new File(basedir, path)
+    System.out.println("Checking for absence of " + file)
     assert !file.exists()
 }
diff --git a/src/it/file-sets-includes-excludes/verify.groovy 
b/src/it/file-sets-includes-excludes/verify.groovy
index dbcc35d..498dab3 100644
--- a/src/it/file-sets-includes-excludes/verify.groovy
+++ b/src/it/file-sets-includes-excludes/verify.groovy
@@ -25,26 +25,21 @@ String[] expected = [
     "dir0/sub0/excluded.txt",
     "dir0/sub1",
     "dir0/sub2/excluded.txt",
-
     "dir1/excluded.txt",
     "dir1/sub0/excluded.txt",
     "dir1/sub1",
     "dir1/sub2/excluded.txt",
-
     "dir2/excluded.txt",
     "dir2/sub0/excluded.txt",
     "dir2/sub2/excluded.txt",
-
     "dir3/excluded.txt",
     "dir3/sub0/excluded.txt",
     "dir3/sub2/excluded.txt",
-
     "dir4/excluded/file.txt",
 ]
-for ( String path : expected )
-{
-    File file = new File( new File( basedir, "dirs" ), path )
-    System.out.println( "Checking for existence of " + file )
+for (String path : expected) {
+    File file = new File(new File(basedir, "dirs"), path)
+    System.out.println("Checking for existence of " + file)
     assert file.exists()
 }
 
@@ -52,25 +47,20 @@ String[] unexpected = [
     "dir0/included.txt",
     "dir0/sub0/included.txt",
     "dir0/sub1/included.txt",
-
     "dir1/included.txt",
     "dir1/sub0/included.txt",
     "dir1/sub1/included.txt",
-
     "dir2/included.txt",
     "dir2/sub0/included.txt",
     "dir2/sub1",
-
     "dir3/included.txt",
     "dir3/sub0/included.txt",
     "dir3/sub1",
-
     "dir4/file.txt",
     "dir4/included/file.txt",
 ]
-for ( String path : unexpected )
-{
-    File file = new File( new File( basedir, "dirs" ), path )
-    System.out.println( "Checking for absence of " + file )
+for (String path : unexpected) {
+    File file = new File(new File(basedir, "dirs"), path)
+    System.out.println("Checking for absence of " + file)
     assert !file.exists()
 }
diff --git a/src/it/file-sets-relative-paths/verify.groovy 
b/src/it/file-sets-relative-paths/verify.groovy
index da8db95..b66aefa 100644
--- a/src/it/file-sets-relative-paths/verify.groovy
+++ b/src/it/file-sets-relative-paths/verify.groovy
@@ -20,27 +20,16 @@
 import java.util.jar.*
 import java.util.regex.*
 
-String[] expected = [
-    "temp-stuff/test.txt",
-    "deploy/test.txt",
-]
-for ( String path : expected )
-{
-    File file = new File( basedir, path )
-    System.out.println( "Checking for existence of " + file )
+String[] expected = ["temp-stuff/test.txt", "deploy/test.txt",]
+for (String path : expected) {
+    File file = new File(basedir, path)
+    System.out.println("Checking for existence of " + file)
     assert file.exists()
 }
 
-String[] unexpected = [
-    "target",
-    "child-a/target",
-    "child-a/temp-stuff",
-    "child-b/target",
-    "child-b/deploy",
-]
-for ( String path : unexpected )
-{
-    File file = new File( basedir, path )
-    System.out.println( "Checking for absence of " + file )
+String[] unexpected = ["target", "child-a/target", "child-a/temp-stuff", 
"child-b/target", "child-b/deploy",]
+for (String path : unexpected) {
+    File file = new File(basedir, path)
+    System.out.println("Checking for absence of " + file)
     assert !file.exists()
 }
diff --git a/src/it/only-test-clean/setup.groovy 
b/src/it/only-test-clean/setup.groovy
index a2186fc..f37af00 100644
--- a/src/it/only-test-clean/setup.groovy
+++ b/src/it/only-test-clean/setup.groovy
@@ -20,6 +20,6 @@
 import java.util.jar.*
 import java.util.regex.*
 
-File targetDir = new File( basedir, "target" )
-System.out.println( "Checking for existence of " + targetDir )
+File targetDir = new File(basedir, "target")
+System.out.println("Checking for existence of " + targetDir)
 assert targetDir.isDirectory()
diff --git a/src/it/only-test-clean/verify.groovy 
b/src/it/only-test-clean/verify.groovy
index 829e5eb..3b9469e 100644
--- a/src/it/only-test-clean/verify.groovy
+++ b/src/it/only-test-clean/verify.groovy
@@ -20,12 +20,12 @@
 import java.util.jar.*
 import java.util.regex.*
 
-File targetDir = new File( basedir, "target" )
-System.out.println( "Checking for absence of " + targetDir )
+File targetDir = new File(basedir, "target")
+System.out.println("Checking for absence of " + targetDir)
 assert targetDir.exists()
 
-File targetClasses = new File( targetDir, "classes" )
+File targetClasses = new File(targetDir, "classes")
 assert targetClasses.exists()
 
-File targetTestsClasses = new File( targetDir, "test-classes" )
+File targetTestsClasses = new File(targetDir, "test-classes")
 assert !targetTestsClasses.exists()
diff --git a/src/it/special-characters/setup.groovy 
b/src/it/special-characters/setup.groovy
index 1aa9ed5..86a3b7e 100644
--- a/src/it/special-characters/setup.groovy
+++ b/src/it/special-characters/setup.groovy
@@ -17,15 +17,15 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
-import java.util.jar.*;
-import java.util.regex.*;
-import org.apache.maven.plugin.clean.*;
+import java.io.*
+import java.util.*
+import java.util.jar.*
+import java.util.regex.*
+import org.apache.maven.plugin.clean.*
 
 
-File parentDir = new File( basedir, "target" );
-File target = new File( parentDir, "Pep\u00E9 le Pew" );
-target.mkdirs();
-target = new File( parentDir, "Conditions_g\u00E9n\u00E9rales_d'isalaire.txt" 
);
-target.createNewFile();
+File parentDir = new File(basedir, "target")
+File target = new File(parentDir, "Pep\u00E9 le Pew")
+target.mkdirs()
+target = new File(parentDir, "Conditions_g\u00E9n\u00E9rales_d'isalaire.txt")
+target.createNewFile()
diff --git a/src/it/special-characters/verify.groovy 
b/src/it/special-characters/verify.groovy
index 6c2c401..3292974 100644
--- a/src/it/special-characters/verify.groovy
+++ b/src/it/special-characters/verify.groovy
@@ -20,6 +20,6 @@
 import java.util.jar.*
 import java.util.regex.*
 
-// this confirms that special character file and directory are deleted 
-File targetDir = new File( basedir, "target" )
+// this confirms that special character file and directory are deleted
+File targetDir = new File(basedir, "target")
 assert !targetDir.exists() : "target must not exist"
diff --git a/src/it/symlink-dont-follow/setup.groovy 
b/src/it/symlink-dont-follow/setup.groovy
index 6aec108..0d9e05a 100644
--- a/src/it/symlink-dont-follow/setup.groovy
+++ b/src/it/symlink-dont-follow/setup.groovy
@@ -17,30 +17,28 @@
  * under the License.
  */
 
-import java.nio.file.*;
-import java.nio.file.attribute.*;
-import java.util.*;
-import java.util.jar.*;
-import java.util.regex.*;
-import org.apache.maven.plugins.clean.*;
+import java.nio.file.*
+import java.nio.file.attribute.*
+import java.util.*
+import java.util.jar.*
+import java.util.regex.*
+import org.apache.maven.plugins.clean.*
 
 String[][] pairs =
-[
-    [ "ext/file.txt", "target/link.txt" ],
-    [ "ext/dir", "target/link" ],
-    [ "ext/file.txt", "target2/link.txt" ],
-    [ "ext/dir", "target2/link" ],
-];
+        [
+            ["ext/file.txt", "target/link.txt"],
+            ["ext/dir", "target/link"],
+            ["ext/file.txt", "target2/link.txt"],
+            ["ext/dir", "target2/link"],
+        ]
 
-for ( String[] pair : pairs )
-{
-    Path target = basedir.toPath().resolve( pair[0] );
-    Path link = basedir.toPath().resolve( pair[1] );
-    System.out.println( "Creating symlink " + link + " -> " + target );
-    Files.createSymbolicLink( link, target, new FileAttribute[0] );
-    if ( !Files.exists( link, new LinkOption[0] ) )
-    {
-        System.out.println( "FAILURE, platform does not support symlinks, 
skipping test." );
-        return;
+for (String[] pair : pairs) {
+    Path target = basedir.toPath().resolve(pair[0])
+    Path link = basedir.toPath().resolve(pair[1])
+    System.out.println("Creating symlink " + link + " -> " + target)
+    Files.createSymbolicLink(link, target, new FileAttribute[0])
+    if (!Files.exists(link, new LinkOption[0])) {
+        System.out.println("FAILURE, platform does not support symlinks, 
skipping test.")
+        return
     }
 }
diff --git a/src/it/symlink-dont-follow/verify.groovy 
b/src/it/symlink-dont-follow/verify.groovy
index 41caf99..ad21fc8 100644
--- a/src/it/symlink-dont-follow/verify.groovy
+++ b/src/it/symlink-dont-follow/verify.groovy
@@ -20,31 +20,18 @@
 import java.util.jar.*
 import java.util.regex.*
 
-String[] expected = [
-    "ext",
-    "ext/file.txt",
-    "ext/dir/file.txt",
-]
+String[] expected = ["ext", "ext/file.txt", "ext/dir/file.txt",]
 
-for ( String path : expected )
-{
-    File file = new File( basedir, path )
-    System.out.println( "Checking for existence of " + file )
+for (String path : expected) {
+    File file = new File(basedir, path)
+    System.out.println("Checking for existence of " + file)
     assert file.exists()
 }
 
-String[] unexpected = [
-    "target/link.txt",
-    "target/link",
-    "target",
-    "target2/link.txt",
-    "target2/link",
-    "target2",
-]
+String[] unexpected = ["target/link.txt", "target/link", "target", 
"target2/link.txt", "target2/link", "target2",]
 
-for ( String path : unexpected )
-{
-    File file = new File( basedir, path )
-    System.out.println( "Checking for absence of " + file )
+for (String path : unexpected) {
+    File file = new File(basedir, path)
+    System.out.println("Checking for absence of " + file)
     assert !file.exists()
 }

Reply via email to