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-acr-plugin.git
commit 6886e77c970d6f802fad136cba64060b309ae8e9 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Wed Nov 25 22:33:28 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/it-01/verify.groovy | 7 ++----- src/it/it-02/verify.groovy | 11 +++-------- src/it/it-04/verify.groovy | 2 +- src/it/it-06/verify.groovy | 4 +++- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/it/it-01/verify.groovy b/src/it/it-01/verify.groovy index 3f5119d..b8a7df5 100644 --- a/src/it/it-01/verify.groovy +++ b/src/it/it-01/verify.groovy @@ -25,10 +25,7 @@ assert jarFile.isFile() : "FAILURE!" var jar = new JarFile(jarFile) -var includedEntries = [ - "META-INF/application-client.xml", - "org/apache/maven/plugin/acr/it/it01/SampleApp.class" -] +var includedEntries = ["META-INF/application-client.xml", "org/apache/maven/plugin/acr/it/it01/SampleApp.class"] for (String included : includedEntries) { println "Checking for existence of $included" assert jar.getEntry(included) != null : "FAILURE!" @@ -39,5 +36,5 @@ jar.close() // Make sure that the jar has been added with a .jar extension var localRepo = new File(basedir.getParentFile().getParentFile(), "local-repo") var repoFile = new File(localRepo, - "/org/apache/maven/plugin/maven-acr-plugin-it01/1.0/maven-acr-plugin-it01-1.0.jar"); + "/org/apache/maven/plugin/maven-acr-plugin-it01/1.0/maven-acr-plugin-it01-1.0.jar") assert repoFile.exists() : "Jar file for application client not found in repo [" + repoFile.getAbsolutePath() + "]" diff --git a/src/it/it-02/verify.groovy b/src/it/it-02/verify.groovy index c40b502..5e03d41 100644 --- a/src/it/it-02/verify.groovy +++ b/src/it/it-02/verify.groovy @@ -25,10 +25,7 @@ assert jarFile.isFile() : "FAILURE!" var jar = new JarFile(jarFile) -var includedEntries = [ - "META-INF/application-client.xml", - "org/apache/maven/plugin/acr/it/it02/SampleApp.class" -] +var includedEntries = ["META-INF/application-client.xml", "org/apache/maven/plugin/acr/it/it02/SampleApp.class"] for (String included : includedEntries) { println "Checking for existence of $included" assert jar.getEntry(included) != null : "FAILURE!" @@ -37,12 +34,10 @@ for (String included : includedEntries) { jar.close() var bundleJarFile = new File(basedir, "bundle/target/maven-acr-plugin-it02-bundle-1.0.jar") -var bundle = new JarFile(bundleJarFile); +var bundle = new JarFile(bundleJarFile) -var includedBundleEntries = [ - "org/apache/maven/plugin/acr/it/it02/DependencyTest.class" -] +var includedBundleEntries = ["org/apache/maven/plugin/acr/it/it02/DependencyTest.class"] for (String included : includedBundleEntries) { println "Checking for existence of $included" assert bundle.getEntry(included) != null : "FAILURE!" diff --git a/src/it/it-04/verify.groovy b/src/it/it-04/verify.groovy index a885525..710a2ce 100644 --- a/src/it/it-04/verify.groovy +++ b/src/it/it-04/verify.groovy @@ -29,7 +29,7 @@ var zipEntry = jarFile.getEntry("META-INF/application-client.xml") assert zipEntry != null : "FAILURE! Missing META-INF/application-client.xml in the JAR file" var is = jarFile.getInputStream(zipEntry) var contents = is.getText('UTF-8') -var index = contents.indexOf("it04.key.value"); +var index = contents.indexOf("it04.key.value") assert index < 0 : "FAILURE! The key 'it04.key.value' has not been replaced during filtering" index = contents.indexOf("it04-success") assert index >= 0 : "FAILURE! The value 'it04-success' has not been injected during filtering" diff --git a/src/it/it-06/verify.groovy b/src/it/it-06/verify.groovy index 5fc59d3..d617f33 100644 --- a/src/it/it-06/verify.groovy +++ b/src/it/it-06/verify.groovy @@ -27,5 +27,7 @@ def expected = [ "maven-surefire-plugin:3.5.4:test", "maven-install-plugin:3.1.4:install" ] -def missing = expected.findAll { !log.contains("org.apache.maven.plugins:" + it + " ") } +def missing = expected.findAll { + !log.contains("org.apache.maven.plugins:" + it + " ") +} assert missing.isEmpty() : "Default bindings not used: " + missing
