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

commit 57cdd032a963632121d9adc111bc940e82825bce
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 23:00:02 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/MJAR-183/verify.groovy              |  4 ++--
 src/it/MJAR-307/verify.groovy              |  4 ++--
 src/it/MJAR-70-no-recreation/verify.groovy | 14 ++++++-------
 src/it/MJAR-82/verify.groovy               | 32 +++++++++++++++---------------
 4 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/src/it/MJAR-183/verify.groovy b/src/it/MJAR-183/verify.groovy
index 78c9ef2..71f1a74 100644
--- a/src/it/MJAR-183/verify.groovy
+++ b/src/it/MJAR-183/verify.groovy
@@ -18,8 +18,8 @@
  * under the License.
  */
 
-File target = new File( basedir, "target" );
+File target = new File(basedir, "target")
 assert target.exists() && target.isDirectory() : "target file is missing or 
not a directory."
 
-File artifact = new File( target, 
"maven-jar-plugin-test-mjar-183-1.0-SNAPSHOT.jar" );
+File artifact = new File( target, 
"maven-jar-plugin-test-mjar-183-1.0-SNAPSHOT.jar" )
 assert artifact.exists() : "default artifact should exist."
diff --git a/src/it/MJAR-307/verify.groovy b/src/it/MJAR-307/verify.groovy
index d75e626..236bdc0 100644
--- a/src/it/MJAR-307/verify.groovy
+++ b/src/it/MJAR-307/verify.groovy
@@ -19,7 +19,7 @@ import java.util.jar.JarFile
  * under the License.
  */
 
-def target = new File( basedir, "target" );
-def jarFile = new File( target, "mjar-307-1.0.jar" );
+def target = new File(basedir, "target")
+def jarFile = new File(target, "mjar-307-1.0.jar")
 
 assert jarFile.exists()
diff --git a/src/it/MJAR-70-no-recreation/verify.groovy 
b/src/it/MJAR-70-no-recreation/verify.groovy
index 9c37f6d..293eb8e 100644
--- a/src/it/MJAR-70-no-recreation/verify.groovy
+++ b/src/it/MJAR-70-no-recreation/verify.groovy
@@ -18,19 +18,19 @@
  * under the License.
  */
 
-File target = new File( basedir, "target" );
+File target = new File(basedir, "target")
 assert target.isDirectory() : "target file is missing or not a directory: " + 
target
 
-File jarFile = new File( target, "MJAR-70-no-recreation-1.0-SNAPSHOT.jar" );
+File jarFile = new File( target, "MJAR-70-no-recreation-1.0-SNAPSHOT.jar" )
 assert jarFile.isFile() : "artifact file is missing or a directory: " + jarFile
 
-File refFile = new File( target, "reference.jar" );
+File refFile = new File( target, "reference.jar" )
 assert refFile.isFile() : "reference file is missing or a directory: " + 
refFile
 
-long referenceTimestamp = refFile.lastModified();
-System.out.println( "Reference timestamp: " + referenceTimestamp );
+long referenceTimestamp = refFile.lastModified()
+System.out.println( "Reference timestamp: " + referenceTimestamp )
 
-long actualTimestamp = jarFile.lastModified();
-System.out.println( "Actual timestamp   : " + actualTimestamp );
+long actualTimestamp = jarFile.lastModified()
+System.out.println( "Actual timestamp   : " + actualTimestamp )
 
 assert referenceTimestamp == actualTimestamp : "Timestamps don't match, JAR 
was recreated although contents has not changed"
diff --git a/src/it/MJAR-82/verify.groovy b/src/it/MJAR-82/verify.groovy
index 89be5e1..51ebef6 100644
--- a/src/it/MJAR-82/verify.groovy
+++ b/src/it/MJAR-82/verify.groovy
@@ -18,27 +18,27 @@
  * under the License.
  */
 
-import org.codehaus.plexus.util.cli.*;
-import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.cli.*
+import org.codehaus.plexus.util.FileUtils
 
-File target = new File( basedir, "target" );
+File target = new File(basedir, "target")
 assert target.exists() && target.isDirectory() : "target file is missing or 
not a directory."
 
-File artifact = new File( target, "MJAR-82-1.0-SNAPSHOT.jar" );
+File artifact = new File( target, "MJAR-82-1.0-SNAPSHOT.jar" )
 assert artifact.exists() && !artifact.isDirectory() : "artifact file is 
missing or a directory."
 
-String localRepoPath = 
basedir.getParentFile().getParentFile().getParentFile().getPath() + 
"/target/local-repo";
-FileUtils.copyFile( artifact, new File( localRepoPath, 
"MJAR-82-1.0-SNAPSHOT.jar" ) );
-Commandline commandline = new Commandline();
-commandline.setExecutable( "java" );
-commandline.setWorkingDirectory( localRepoPath );
-System.out.println(" localRepoPath " + localRepoPath );
-commandline.createArg().setLine( "-jar MJAR-82-1.0-SNAPSHOT.jar" );
-CommandLineUtils.StringStreamConsumer consumer = new 
CommandLineUtils.StringStreamConsumer();
-int res = CommandLineUtils.executeCommandLine( commandline, consumer, consumer 
);
-String output = consumer.getOutput();
-System.out.println( "res " + res );
-System.out.println( output );
+String localRepoPath = 
basedir.getParentFile().getParentFile().getParentFile().getPath() + 
"/target/local-repo"
+FileUtils.copyFile( artifact, new File( localRepoPath, 
"MJAR-82-1.0-SNAPSHOT.jar" ) )
+Commandline commandline = new Commandline()
+commandline.setExecutable( "java" )
+commandline.setWorkingDirectory( localRepoPath )
+System.out.println(" localRepoPath " + localRepoPath )
+commandline.createArg().setLine( "-jar MJAR-82-1.0-SNAPSHOT.jar" )
+CommandLineUtils.StringStreamConsumer consumer = new 
CommandLineUtils.StringStreamConsumer()
+int res = CommandLineUtils.executeCommandLine( commandline, consumer, consumer 
)
+String output = consumer.getOutput()
+System.out.println( "res " + res )
+System.out.println( output )
 assert res == 0 : "commandline execution return code != 0 " + res
 
 assert output.indexOf("great it works") >= 0 : "output not contains great it 
works"

Reply via email to