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-antrun-plugin.git
commit d3034b0f6db5c6c7f880b43d9158046d12ec44ee Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Wed Nov 25 22:01:45 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/MANTRUN-172/verify.groovy | 14 +++++++------- src/it/MANTRUN-179/verify.groovy | 8 ++++---- src/it/MANTRUN-208/verify.groovy | 8 ++++---- src/it/ant-1.7-features/verify.groovy | 8 ++++---- src/it/antrun-default-test/verify.groovy | 8 ++++---- src/it/attach-artifact-from-ant-task/verify.groovy | 16 +++++++--------- .../verify.groovy | 16 +++++++--------- .../verify.groovy | 16 +++++++--------- src/it/attach-artifact-test/verify.groovy | 10 +++++----- src/it/filesets-test/verify.groovy | 14 +++++++------- src/it/multiple-phase-test/verify.groovy | 6 +++--- src/it/tasksattributes-test/verify.groovy | 8 ++++---- 12 files changed, 63 insertions(+), 69 deletions(-) diff --git a/src/it/MANTRUN-172/verify.groovy b/src/it/MANTRUN-172/verify.groovy index 34965a2..5f516ab 100644 --- a/src/it/MANTRUN-172/verify.groovy +++ b/src/it/MANTRUN-172/verify.groovy @@ -18,12 +18,12 @@ * under the License. */ -import java.io.File; +import java.io.File -File buildLog = new File( basedir, "build.log" ); -String log = buildLog.getText( 'UTF-8' ); +File buildLog = new File(basedir, "build.log") +String log = buildLog.getText('UTF-8') -assert log.contains( "[echo] pom.xml: ptest = from commandline" ) && - log.contains( "[echo] pom.xml: my.test.property = from commandline" ) && - log.contains( "[echo] build.xml: ptest = from commandline" ) && - log.contains( "[echo] build.xml: my.test.property = from commandline" ) : "Generated console output does not contain [echo] output: " + buildLog +assert log.contains("[echo] pom.xml: ptest = from commandline") && +log.contains("[echo] pom.xml: my.test.property = from commandline") && +log.contains("[echo] build.xml: ptest = from commandline") && +log.contains("[echo] build.xml: my.test.property = from commandline") : "Generated console output does not contain [echo] output: " + buildLog diff --git a/src/it/MANTRUN-179/verify.groovy b/src/it/MANTRUN-179/verify.groovy index 9a8ace6..9ced6d2 100644 --- a/src/it/MANTRUN-179/verify.groovy +++ b/src/it/MANTRUN-179/verify.groovy @@ -18,9 +18,9 @@ * under the License. */ -import java.io.File; +import java.io.File -File buildLog = new File( basedir, "build.log" ); -String log = buildLog.getText( 'UTF-8' ); +File buildLog = new File(basedir, "build.log") +String log = buildLog.getText('UTF-8') -assert log.contains( "[echo] From the pluginManagement" ) && log.contains( "[echo] From the exec config" ) : "Generated console output does not contain [echo] output: " + buildLog +assert log.contains("[echo] From the pluginManagement") && log.contains("[echo] From the exec config") : "Generated console output does not contain [echo] output: " + buildLog diff --git a/src/it/MANTRUN-208/verify.groovy b/src/it/MANTRUN-208/verify.groovy index fb5ac27..5e6f2c9 100644 --- a/src/it/MANTRUN-208/verify.groovy +++ b/src/it/MANTRUN-208/verify.groovy @@ -18,9 +18,9 @@ * under the License. */ -import java.io.*; +import java.io.* -File buildLog = new File( basedir, "build.log" ); -String log = buildLog.getText( 'UTF-8' ); +File buildLog = new File(basedir, "build.log") +String log = buildLog.getText('UTF-8') -assert log.indexOf( "compile classpath: |" ) >= 0 && log.indexOf( "compile classpath: ||" ) < 0 : "Generated console output does not contain compile classpath: " + buildLog +assert log.indexOf("compile classpath: |") >= 0 && log.indexOf("compile classpath: ||") < 0 : "Generated console output does not contain compile classpath: " + buildLog diff --git a/src/it/ant-1.7-features/verify.groovy b/src/it/ant-1.7-features/verify.groovy index af8dbc0..e2bafc1 100644 --- a/src/it/ant-1.7-features/verify.groovy +++ b/src/it/ant-1.7-features/verify.groovy @@ -18,8 +18,8 @@ * under the License. */ -import java.io.*; +import java.io.* -File xmlFile = new File( basedir, "echo.xml" ); -String xml = xmlFile.getText( 'UTF-8' ); -assert xml.indexOf( "<test" ) >= 0 : "Bad XML output: " + xml +File xmlFile = new File(basedir, "echo.xml") +String xml = xmlFile.getText('UTF-8') +assert xml.indexOf("<test") >= 0 : "Bad XML output: " + xml diff --git a/src/it/antrun-default-test/verify.groovy b/src/it/antrun-default-test/verify.groovy index 222c2f0..7bf0d15 100644 --- a/src/it/antrun-default-test/verify.groovy +++ b/src/it/antrun-default-test/verify.groovy @@ -18,9 +18,9 @@ * under the License. */ -import java.io.*; +import java.io.* -File buildLog = new File( basedir, "build.log" ); -String log = buildLog.getText( 'UTF-8' ); +File buildLog = new File(basedir, "build.log") +String log = buildLog.getText('UTF-8') -assert log.indexOf( "[echo] Hello World!" ) >= 0 : "Generated console output does not contain [echo] output: " + buildLog +assert log.indexOf("[echo] Hello World!") >= 0 : "Generated console output does not contain [echo] output: " + buildLog diff --git a/src/it/attach-artifact-from-ant-task/verify.groovy b/src/it/attach-artifact-from-ant-task/verify.groovy index bd56e3f..a483f13 100644 --- a/src/it/attach-artifact-from-ant-task/verify.groovy +++ b/src/it/attach-artifact-from-ant-task/verify.groovy @@ -18,20 +18,18 @@ * under the License. */ -import java.io.*; +import java.io.* String[] expectedFiles = [ "org/apache/maven/plugins/antrun/attach-artifact-from-ant-task/1.0/attach-artifact-from-ant-task-1.0.pom", "org/apache/maven/plugins/antrun/attach-artifact-from-ant-task/1.0/attach-artifact-from-ant-task-1.0-from-pom.txt", "org/apache/maven/plugins/antrun/attach-artifact-from-ant-task/1.0/attach-artifact-from-ant-task-1.0-from-build.txt" -]; +] -for ( String expectedFile : expectedFiles ) -{ - File file = new File( localRepositoryPath, expectedFile ); - System.out.println( "Checking for existence of " + file ); - if ( !file.isFile() ) - { - throw new Exception( "Missing file " + file ); +for (String expectedFile : expectedFiles) { + File file = new File(localRepositoryPath, expectedFile) + System.out.println("Checking for existence of " + file) + if (!file.isFile()) { + throw new Exception("Missing file " + file) } } diff --git a/src/it/attach-artifact-test-with-prefix-antlib/verify.groovy b/src/it/attach-artifact-test-with-prefix-antlib/verify.groovy index f0d55d4..879c8e2 100644 --- a/src/it/attach-artifact-test-with-prefix-antlib/verify.groovy +++ b/src/it/attach-artifact-test-with-prefix-antlib/verify.groovy @@ -18,19 +18,17 @@ * under the License. */ -import java.io.*; +import java.io.* String[] expectedFiles = [ "org/apache/maven/plugins/antrun/attach-artifact-test-with-prefix/1.0/attach-artifact-test-with-prefix-1.0.pom", "org/apache/maven/plugins/antrun/attach-artifact-test-with-prefix/1.0/attach-artifact-test-with-prefix-1.0-cl.txt" -]; +] -for ( String expectedFile : expectedFiles ) -{ - File file = new File( localRepositoryPath, expectedFile ); - System.out.println( "Checking for existence of " + file ); - if ( !file.isFile() ) - { - throw new Exception( "Missing file " + file ); +for (String expectedFile : expectedFiles) { + File file = new File(localRepositoryPath, expectedFile) + System.out.println("Checking for existence of " + file) + if (!file.isFile()) { + throw new Exception("Missing file " + file) } } diff --git a/src/it/attach-artifact-test-with-prefix-antrun/verify.groovy b/src/it/attach-artifact-test-with-prefix-antrun/verify.groovy index f0d55d4..879c8e2 100644 --- a/src/it/attach-artifact-test-with-prefix-antrun/verify.groovy +++ b/src/it/attach-artifact-test-with-prefix-antrun/verify.groovy @@ -18,19 +18,17 @@ * under the License. */ -import java.io.*; +import java.io.* String[] expectedFiles = [ "org/apache/maven/plugins/antrun/attach-artifact-test-with-prefix/1.0/attach-artifact-test-with-prefix-1.0.pom", "org/apache/maven/plugins/antrun/attach-artifact-test-with-prefix/1.0/attach-artifact-test-with-prefix-1.0-cl.txt" -]; +] -for ( String expectedFile : expectedFiles ) -{ - File file = new File( localRepositoryPath, expectedFile ); - System.out.println( "Checking for existence of " + file ); - if ( !file.isFile() ) - { - throw new Exception( "Missing file " + file ); +for (String expectedFile : expectedFiles) { + File file = new File(localRepositoryPath, expectedFile) + System.out.println("Checking for existence of " + file) + if (!file.isFile()) { + throw new Exception("Missing file " + file) } } diff --git a/src/it/attach-artifact-test/verify.groovy b/src/it/attach-artifact-test/verify.groovy index fe5ccea..8b24b87 100644 --- a/src/it/attach-artifact-test/verify.groovy +++ b/src/it/attach-artifact-test/verify.groovy @@ -18,14 +18,14 @@ * under the License. */ -import java.io.*; +import java.io.* -String zipFilePath = "../../local-repo/antrun-plugin/test/antrun-plugin-attach-artifact-test/1.0-SNAPSHOT/antrun-plugin-attach-artifact-test-1.0-SNAPSHOT-foo.zip"; -File installedZipFile = new File( basedir, zipFilePath ); +String zipFilePath = "../../local-repo/antrun-plugin/test/antrun-plugin-attach-artifact-test/1.0-SNAPSHOT/antrun-plugin-attach-artifact-test-1.0-SNAPSHOT-foo.zip" +File installedZipFile = new File(basedir, zipFilePath) assert installedZipFile.exists() : "Zip file not installed: " + installedZipFile -String zipWithouClassifierFilePath = "../../local-repo/antrun-plugin/test/antrun-plugin-attach-artifact-test/1.0-SNAPSHOT/antrun-plugin-attach-artifact-test-1.0-SNAPSHOT.zip"; -File installedZipWithouClassifierFile = new File( basedir, zipWithouClassifierFilePath ); +String zipWithouClassifierFilePath = "../../local-repo/antrun-plugin/test/antrun-plugin-attach-artifact-test/1.0-SNAPSHOT/antrun-plugin-attach-artifact-test-1.0-SNAPSHOT.zip" +File installedZipWithouClassifierFile = new File( basedir, zipWithouClassifierFilePath ) assert installedZipWithouClassifierFile.exists() : "Zip file (without classifier) not installed: " + installedZipWithouClassifierFile diff --git a/src/it/filesets-test/verify.groovy b/src/it/filesets-test/verify.groovy index 3dcd14a..bfdf421 100644 --- a/src/it/filesets-test/verify.groovy +++ b/src/it/filesets-test/verify.groovy @@ -18,18 +18,18 @@ * under the License. */ -import java.io.*; +import java.io.* -File depsDir = new File( basedir, "target/dependencies" ); -File antJar = new File( depsDir, "ant-" + scriptVarVersionAnt + ".jar" ); -File junitJar = new File( depsDir, "junit-jupiter-engine-" + scriptVarVersionJunit + ".jar" ); +File depsDir = new File(basedir, "target/dependencies") +File antJar = new File(depsDir, "ant-" + scriptVarVersionAnt + ".jar") +File junitJar = new File(depsDir, "junit-jupiter-engine-" + scriptVarVersionJunit + ".jar") assert antJar.exists() && !antJar.isDirectory() : "Ant jar file does not exist: " + antJar assert junitJar.exists() && !junitJar.isDirectory() : "Junit jar file does not exist: " + junitJar -File deps2Dir = new File( basedir, "target/dependencies2" ); -antJar = new File( deps2Dir, "ant-" + scriptVarVersionAnt + ".jar" ); -junitJar = new File( deps2Dir, "junit-jupiter-api-" + scriptVarVersionJunit + ".jar" ); +File deps2Dir = new File( basedir, "target/dependencies2" ) +antJar = new File( deps2Dir, "ant-" + scriptVarVersionAnt + ".jar" ) +junitJar = new File( deps2Dir, "junit-jupiter-api-" + scriptVarVersionJunit + ".jar" ) assert antJar.exists() && !antJar.isDirectory() : "Ant jar file does not exist: " + antJar assert junitJar.exists() && !junitJar.isDirectory() : "Junit jar file does not exist: " + junitJar diff --git a/src/it/multiple-phase-test/verify.groovy b/src/it/multiple-phase-test/verify.groovy index 2870f02..ca0b763 100644 --- a/src/it/multiple-phase-test/verify.groovy +++ b/src/it/multiple-phase-test/verify.groovy @@ -18,10 +18,10 @@ * under the License. */ -import java.io.*; +import java.io.* -File phase1 = new File( basedir, "phase-1.txt" ); +File phase1 = new File(basedir, "phase-1.txt") assert phase1.exists() : "Could not find Ant generated file: " + phase1 -File phase2 = new File( basedir, "phase-2.txt" ); +File phase2 = new File( basedir, "phase-2.txt" ) assert phase2.exists() : "Could not find Ant generated file: " + phase2 diff --git a/src/it/tasksattributes-test/verify.groovy b/src/it/tasksattributes-test/verify.groovy index 9a4a87f..1d2cfc0 100644 --- a/src/it/tasksattributes-test/verify.groovy +++ b/src/it/tasksattributes-test/verify.groovy @@ -18,10 +18,10 @@ * under the License. */ -import java.io.*; +import java.io.* -File buildLog = new File( basedir, "build.log" ); -String log = buildLog.getText( 'UTF-8' ); +File buildLog = new File(basedir, "build.log") +String log = buildLog.getText('UTF-8') -assert log.indexOf( "[echo] [ANTRUN-OUTPUT-MARKER:IF]" ) >= 0 : "Generated console output does not contain expected marker output" +assert log.indexOf("[echo] [ANTRUN-OUTPUT-MARKER:IF]") >= 0 : "Generated console output does not contain expected marker output" assert log.indexOf( "[echo] [ANTRUN-OUTPUT-MARKER:UNLESS]" ) < 0 : "Generated console output contains unexpected marker output"
