From 97fdf4fac509c76f7c109d7c6308a71b5bc76039 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Wed, 25 Nov 2026 20:33:38 +0000 Subject: [PATCH] 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/projects/active-profiles/verify.groovy | 6 ++--- .../active-profiles_multimodule/verify.groovy | 10 +++---- .../all-profiles-parent-pom/verify.groovy | 14 +++++----- src/it/projects/all-profiles/verify.groovy | 8 +++--- .../verify.groovy | 12 ++++----- .../describe-cmd-with-goal/verify.groovy | 12 ++++----- src/it/projects/describe-cmd/verify.groovy | 10 +++---- .../verify.groovy | 14 +++++----- .../verify.groovy | 14 +++++----- .../verify.groovy | 2 +- .../effective-pom-artifact/verify.groovy | 4 +-- .../verify.groovy | 16 ++++++------ .../verify.groovy | 10 +++---- .../verify.groovy | 4 +-- .../effective-pom-multimodule/verify.groovy | 4 +-- .../effective-pom-verbose/verify.groovy | 6 ++--- .../effective-pom_properties/verify.groovy | 26 +++++++++---------- .../verify.groovy | 10 +++---- .../verify.groovy | 4 +-- .../verify.groovy | 4 +-- .../verify.groovy | 12 ++++++--- .../verify.groovy | 4 +-- .../evaluate-null-object/verify.groovy | 6 ++--- .../evaluate-settings-servers/verify.groovy | 8 ++++-- .../verify.groovy | 6 ++--- src/it/projects/evaluate/verify.groovy | 6 ++--- 26 files changed, 121 insertions(+), 111 deletions(-) diff --git a/src/it/projects/active-profiles/verify.groovy b/src/it/projects/active-profiles/verify.groovy index a747d8ac..1cc37a02 100644 --- a/src/it/projects/active-profiles/verify.groovy +++ b/src/it/projects/active-profiles/verify.groovy @@ -16,9 +16,9 @@ * specific language governing permissions and limitations * under the License. */ - -def buildLog = new File(basedir, 'build.log'); + +def buildLog = new File(basedir, 'build.log') assert buildLog.exists() -assert 1 == buildLog.text.count( ' - it-repo (source: external)' ) +assert 1 == buildLog.text.count(' - it-repo (source: external)') diff --git a/src/it/projects/active-profiles_multimodule/verify.groovy b/src/it/projects/active-profiles_multimodule/verify.groovy index c2072675..a3f9fc4d 100644 --- a/src/it/projects/active-profiles_multimodule/verify.groovy +++ b/src/it/projects/active-profiles_multimodule/verify.groovy @@ -17,10 +17,10 @@ * under the License. */ -def buildLog = new File( basedir, 'build.log' ); +def buildLog = new File(basedir, 'build.log') assert buildLog.exists() -assert 2 == buildLog.text.count( ' - mph79 (source: org.apache.maven.its.help:active-profiles_multimodule:1.0-SNAPSHOT)' ) -assert 1 == buildLog.text.count( ' - mph79-child (source: org.apache.maven.its.help:active-profiles_multimodule-module:1.0-SNAPSHOT)' ) -assert 0 == buildLog.text.count( ' - mph79-child-inactive' ) -assert 2 == buildLog.text.count( ' - it-repo (source: external)' ) +assert 2 == buildLog.text.count(' - mph79 (source: org.apache.maven.its.help:active-profiles_multimodule:1.0-SNAPSHOT)') +assert 1 == buildLog.text.count(' - mph79-child (source: org.apache.maven.its.help:active-profiles_multimodule-module:1.0-SNAPSHOT)') +assert 0 == buildLog.text.count(' - mph79-child-inactive') +assert 2 == buildLog.text.count(' - it-repo (source: external)') diff --git a/src/it/projects/all-profiles-parent-pom/verify.groovy b/src/it/projects/all-profiles-parent-pom/verify.groovy index d0c5e485..56dee95b 100644 --- a/src/it/projects/all-profiles-parent-pom/verify.groovy +++ b/src/it/projects/all-profiles-parent-pom/verify.groovy @@ -17,13 +17,13 @@ * under the License. */ -def buildLog = new File( basedir, 'build.log' ); +def buildLog = new File(basedir, 'build.log') assert buildLog.exists() // 2 = parent + child -assert 2 == buildLog.text.count( ' Profile Id: it-repo (Active: true, Source: settings.xml)' ) -assert !buildLog.text.contains( ' Profile Id: it-repo (Active: true, Source: pom)' ) -assert 2 == buildLog.text.count( ' Profile Id: profile-active-from-parent-pom (Active: true, Source: pom)' ) -assert 2 == buildLog.text.count( ' Profile Id: profile-inactive-from-parent-pom (Active: false, Source: pom)' ) -assert 1 == buildLog.text.count( ' Profile Id: profile-active-from-child-pom (Active: true, Source: pom)' ) -assert 1 == buildLog.text.count( ' Profile Id: profile-inactive-from-child-pom (Active: false, Source: pom)' ) +assert 2 == buildLog.text.count(' Profile Id: it-repo (Active: true, Source: settings.xml)') +assert !buildLog.text.contains(' Profile Id: it-repo (Active: true, Source: pom)') +assert 2 == buildLog.text.count(' Profile Id: profile-active-from-parent-pom (Active: true, Source: pom)') +assert 2 == buildLog.text.count(' Profile Id: profile-inactive-from-parent-pom (Active: false, Source: pom)') +assert 1 == buildLog.text.count(' Profile Id: profile-active-from-child-pom (Active: true, Source: pom)') +assert 1 == buildLog.text.count(' Profile Id: profile-inactive-from-child-pom (Active: false, Source: pom)') diff --git a/src/it/projects/all-profiles/verify.groovy b/src/it/projects/all-profiles/verify.groovy index 6657f733..c94d35a8 100644 --- a/src/it/projects/all-profiles/verify.groovy +++ b/src/it/projects/all-profiles/verify.groovy @@ -16,9 +16,9 @@ * specific language governing permissions and limitations * under the License. */ -def buildLog = new File( basedir, 'build.log' ); +def buildLog = new File(basedir, 'build.log') assert buildLog.exists() -assert 1 == buildLog.text.count( ' Profile Id: it-repo (Active: true, Source: settings.xml)' ) -assert 1 == buildLog.text.count( ' Profile Id: profile-active-from-pom (Active: true, Source: pom)' ) -assert 1 == buildLog.text.count( ' Profile Id: profile-inactive-from-pom (Active: false, Source: pom)' ) +assert 1 == buildLog.text.count(' Profile Id: it-repo (Active: true, Source: settings.xml)') +assert 1 == buildLog.text.count(' Profile Id: profile-active-from-pom (Active: true, Source: pom)') +assert 1 == buildLog.text.count(' Profile Id: profile-inactive-from-pom (Active: false, Source: pom)') diff --git a/src/it/projects/describe-cmd-with-goal-report/verify.groovy b/src/it/projects/describe-cmd-with-goal-report/verify.groovy index 1793de5b..de28b2d2 100644 --- a/src/it/projects/describe-cmd-with-goal-report/verify.groovy +++ b/src/it/projects/describe-cmd-with-goal-report/verify.groovy @@ -16,14 +16,14 @@ * specific language governing permissions and limitations * under the License. */ -def buildLog = new File(basedir, 'changes.log'); +def buildLog = new File(basedir, 'changes.log') assert buildLog.exists() -assert buildLog.text.contains('Note: This goal should be used as a Maven report.'); +assert buildLog.text.contains('Note: This goal should be used as a Maven report.') -buildLog = new File(basedir, 'javadoc.log'); +buildLog = new File(basedir, 'javadoc.log') assert buildLog.exists() -assert buildLog.text.contains('Note: This goal should be used as a Maven report.'); +assert buildLog.text.contains('Note: This goal should be used as a Maven report.') -buildLog = new File(basedir, 'assembly.log'); +buildLog = new File(basedir, 'assembly.log') assert buildLog.exists() -assert !buildLog.text.contains('Note: This goal should be used as a Maven report.'); +assert !buildLog.text.contains('Note: This goal should be used as a Maven report.') diff --git a/src/it/projects/describe-cmd-with-goal/verify.groovy b/src/it/projects/describe-cmd-with-goal/verify.groovy index 4e2dc2b2..16f823aa 100644 --- a/src/it/projects/describe-cmd-with-goal/verify.groovy +++ b/src/it/projects/describe-cmd-with-goal/verify.groovy @@ -17,13 +17,13 @@ * under the License. */ -def result = new File(basedir, 'result.txt').text; +def result = new File(basedir, 'result.txt').text -def ls = System.lineSeparator(); +def ls = System.lineSeparator() assert result.contains("'deploy:deploy' is a plugin goal (aka mojo)." + ls + - "Mojo: 'deploy:deploy'" + ls + - "deploy:deploy" + ls + - " Description:") +"Mojo: 'deploy:deploy'" + ls + +"deploy:deploy" + ls + +" Description:") -return true; +return true diff --git a/src/it/projects/describe-cmd/verify.groovy b/src/it/projects/describe-cmd/verify.groovy index abc89219..340cfa50 100644 --- a/src/it/projects/describe-cmd/verify.groovy +++ b/src/it/projects/describe-cmd/verify.groovy @@ -17,15 +17,15 @@ * under the License. */ -def result = new File(basedir, 'result-deploy.txt').text; +def result = new File(basedir, 'result-deploy.txt').text -def ls = System.lineSeparator(); +def ls = System.lineSeparator() assert result.contains("'deploy' is a phase corresponding to this plugin:" + ls + - "org.apache.maven.plugins:maven-deploy-plugin") +"org.apache.maven.plugins:maven-deploy-plugin") -result = new File(basedir, 'result-site.txt').text; +result = new File(basedir, 'result-site.txt').text assert result.contains("'site' is a phase within the 'site' lifecycle, which has the following phases:") -return true; +return true diff --git a/src/it/projects/describe-plugin-in-plugin-management/verify.groovy b/src/it/projects/describe-plugin-in-plugin-management/verify.groovy index e15e0023..f0a1f60e 100644 --- a/src/it/projects/describe-plugin-in-plugin-management/verify.groovy +++ b/src/it/projects/describe-plugin-in-plugin-management/verify.groovy @@ -17,14 +17,14 @@ * under the License. */ -def result = new File(basedir, 'result.txt').text; -def ls = System.lineSeparator(); +def result = new File(basedir, 'result.txt').text +def ls = System.lineSeparator() assert result.contains( - "Group Id: org.apache.maven.plugins" + ls + - "Artifact Id: maven-surefire-plugin" + ls + - "Version: " + surefireversion + ls + - "Goal Prefix: surefire" +"Group Id: org.apache.maven.plugins" + ls + +"Artifact Id: maven-surefire-plugin" + ls + +"Version: " + surefireversion + ls + +"Goal Prefix: surefire" ) -return true; +return true diff --git a/src/it/projects/describe-plugin-without-name/verify.groovy b/src/it/projects/describe-plugin-without-name/verify.groovy index a6b928a2..59e9b242 100644 --- a/src/it/projects/describe-plugin-without-name/verify.groovy +++ b/src/it/projects/describe-plugin-without-name/verify.groovy @@ -17,14 +17,14 @@ * under the License. */ -def result = new File(basedir, 'result.txt').text; +def result = new File(basedir, 'result.txt').text -def ls = System.lineSeparator(); +def ls = System.lineSeparator() -assert result.contains( "Name: Maven Help Plugin" ) +assert result.contains("Name: Maven Help Plugin") -assert result.contains( "Group Id: org.apache.maven.plugins" + ls + - "Artifact Id: maven-help-plugin" + ls + - "Version: 2.0" ) +assert result.contains("Group Id: org.apache.maven.plugins" + ls + +"Artifact Id: maven-help-plugin" + ls + +"Version: 2.0") -return true; +return true diff --git a/src/it/projects/describe-prefix-and-invalid-mojo/verify.groovy b/src/it/projects/describe-prefix-and-invalid-mojo/verify.groovy index ce05d41a..438f82df 100644 --- a/src/it/projects/describe-prefix-and-invalid-mojo/verify.groovy +++ b/src/it/projects/describe-prefix-and-invalid-mojo/verify.groovy @@ -18,4 +18,4 @@ */ content = new File(basedir, 'build.log').text -assert content.indexOf( "NullPointerException" ) < 0 \ No newline at end of file +assert content.indexOf("NullPointerException") < 0 \ No newline at end of file diff --git a/src/it/projects/effective-pom-artifact/verify.groovy b/src/it/projects/effective-pom-artifact/verify.groovy index 56ce53ed..f4b748aa 100644 --- a/src/it/projects/effective-pom-artifact/verify.groovy +++ b/src/it/projects/effective-pom-artifact/verify.groovy @@ -16,10 +16,10 @@ * specific language governing permissions and limitations * under the License. */ -def result = new File(basedir, 'result.txt'); +def result = new File(basedir, 'result.txt') assert result.exists() -def LS = System.lineSeparator() +def LS = System.lineSeparator() assert result.text.find('(?s)' + ' org.apache.maven.plugins' + LS + ' maven-help-plugin' diff --git a/src/it/projects/effective-pom-from-lifecycle/verify.groovy b/src/it/projects/effective-pom-from-lifecycle/verify.groovy index 3f60e68c..30abe3a1 100644 --- a/src/it/projects/effective-pom-from-lifecycle/verify.groovy +++ b/src/it/projects/effective-pom-from-lifecycle/verify.groovy @@ -17,14 +17,14 @@ * under the License. */ -String content = new File( basedir, "result.txt" ).text +String content = new File(basedir, "result.txt").text -assert content.contains( "" ) -assert content.contains( "org.apache.maven.its.help:test:pom:1.0" ) -assert content.contains( "org.apache.maven.its.help:module:pom:1.0" ) +assert content.contains("") +assert content.contains("org.apache.maven.its.help:test:pom:1.0") +assert content.contains("org.apache.maven.its.help:module:pom:1.0") -content = new File( basedir, "module/result.txt" ).text +content = new File(basedir, "module/result.txt").text -assert !content.contains( "" ) -assert !content.contains( "org.apache.maven.its.help:test:pom:1.0" ) -assert content.contains( "org.apache.maven.its.help:module:pom:1.0" ) +assert !content.contains("") +assert !content.contains("org.apache.maven.its.help:test:pom:1.0") +assert content.contains("org.apache.maven.its.help:module:pom:1.0") diff --git a/src/it/projects/effective-pom-multimodule-artifact/verify.groovy b/src/it/projects/effective-pom-multimodule-artifact/verify.groovy index 39401cd9..8ce0082a 100644 --- a/src/it/projects/effective-pom-multimodule-artifact/verify.groovy +++ b/src/it/projects/effective-pom-multimodule-artifact/verify.groovy @@ -17,14 +17,14 @@ * under the License. */ -String content = new File( basedir, "build.log" ).text -assert content.indexOf( "" ) == -1 +String content = new File(basedir, "build.log").text +assert content.indexOf("") == -1 -def result = new File(basedir, 'result.txt'); +def result = new File(basedir, 'result.txt') assert result.exists() def LS = System.lineSeparator() assert result.text.find('(?s)' + - ' org.apache.maven.plugins' + LS + - ' maven-help-plugin' +' org.apache.maven.plugins' + LS + +' maven-help-plugin' ) != null \ No newline at end of file diff --git a/src/it/projects/effective-pom-multimodule-unlink-parent/verify.groovy b/src/it/projects/effective-pom-multimodule-unlink-parent/verify.groovy index 2dbf6698..64062bc5 100644 --- a/src/it/projects/effective-pom-multimodule-unlink-parent/verify.groovy +++ b/src/it/projects/effective-pom-multimodule-unlink-parent/verify.groovy @@ -17,5 +17,5 @@ * under the License. */ -String content = new File( basedir, "build.log" ).text -assert content.indexOf( "" ) != -1 \ No newline at end of file +String content = new File(basedir, "build.log").text +assert content.indexOf("") != -1 \ No newline at end of file diff --git a/src/it/projects/effective-pom-multimodule/verify.groovy b/src/it/projects/effective-pom-multimodule/verify.groovy index 2dbf6698..64062bc5 100644 --- a/src/it/projects/effective-pom-multimodule/verify.groovy +++ b/src/it/projects/effective-pom-multimodule/verify.groovy @@ -17,5 +17,5 @@ * under the License. */ -String content = new File( basedir, "build.log" ).text -assert content.indexOf( "" ) != -1 \ No newline at end of file +String content = new File(basedir, "build.log").text +assert content.indexOf("") != -1 \ No newline at end of file diff --git a/src/it/projects/effective-pom-verbose/verify.groovy b/src/it/projects/effective-pom-verbose/verify.groovy index 71c44d54..58afdc33 100644 --- a/src/it/projects/effective-pom-verbose/verify.groovy +++ b/src/it/projects/effective-pom-verbose/verify.groovy @@ -17,8 +17,8 @@ * under the License. */ -String content = new File( basedir, "build.log" ).text +String content = new File(basedir, "build.log").text // comments in the same line -assert content.contains( "org.apache.maven.its.help " ) +assert content.contains("org.apache.maven.its.help ") diff --git a/src/it/projects/effective-pom_properties/verify.groovy b/src/it/projects/effective-pom_properties/verify.groovy index 6adbd091..709b79ee 100644 --- a/src/it/projects/effective-pom_properties/verify.groovy +++ b/src/it/projects/effective-pom_properties/verify.groovy @@ -16,25 +16,25 @@ * specific language governing permissions and limitations * under the License. */ -def buildLog = new File(basedir, 'build.log'); +def buildLog = new File(basedir, 'build.log') assert buildLog.exists() def LS = System.lineSeparator() if (mavenVersion.startsWith('4.')) { // with Maven 4, order of properties is reversed from original pom.xml assert buildLog.text.find( - '(?s)' + - ' ' + LS + - ' 1\\.8' + LS + - ' 1\\.8' + LS + - '.*' + - ' ') != null + '(?s)' + + ' ' + LS + + ' 1\\.8' + LS + + ' 1\\.8' + LS + + '.*' + + ' ') != null } else { assert buildLog.text.find( - '(?s)' + - ' ' + LS + - ' 1\\.8' + LS + - ' 1\\.8' + LS + - '.*' + - ' ') != null + '(?s)' + + ' ' + LS + + ' 1\\.8' + LS + + ' 1\\.8' + LS + + '.*' + + ' ') != null } diff --git a/src/it/projects/effective-settings-with-repository-origins/verify.groovy b/src/it/projects/effective-settings-with-repository-origins/verify.groovy index 2271891a..1ba59c17 100644 --- a/src/it/projects/effective-settings-with-repository-origins/verify.groovy +++ b/src/it/projects/effective-settings-with-repository-origins/verify.groovy @@ -20,8 +20,8 @@ def buildLog = new File(basedir, 'build.log') assert buildLog.exists() assert buildLog.text.find( - '(?s)' + - '\\s*.' + - '\\s*https://clone1.maven.apache.org/repository/.' + - '\\s*https://clone2.maven.apache.org/repository/.' + - '\\s*') != null +'(?s)' + +'\\s*.' + +'\\s*https://clone1.maven.apache.org/repository/.' + +'\\s*https://clone2.maven.apache.org/repository/.' + +'\\s*') != null diff --git a/src/it/projects/effective-settings_deep-clone/verify.groovy b/src/it/projects/effective-settings_deep-clone/verify.groovy index 4e495f86..f22de84d 100644 --- a/src/it/projects/effective-settings_deep-clone/verify.groovy +++ b/src/it/projects/effective-settings_deep-clone/verify.groovy @@ -16,14 +16,14 @@ * specific language governing permissions and limitations * under the License. */ -def buildLog = new File(basedir, 'build.log'); +def buildLog = new File(basedir, 'build.log') assert buildLog.exists() // for effective-settings call // maven.version (3.0,3.0.4] are missing the proxies?! > assert = 2 // maven.version (,2.2.1) correct > assert = 3 // assert 3 == buildLog.text.count('***') -assert (2..4).contains( buildLog.text.count('***') ) +assert (2..4).contains(buildLog.text.count('***')) // for evaluate calls assert buildLog.text.contains('proxy-password') diff --git a/src/it/projects/evaluate-artifact-with-expression-with-output/verify.groovy b/src/it/projects/evaluate-artifact-with-expression-with-output/verify.groovy index 0c856b76..2a511583 100644 --- a/src/it/projects/evaluate-artifact-with-expression-with-output/verify.groovy +++ b/src/it/projects/evaluate-artifact-with-expression-with-output/verify.groovy @@ -17,7 +17,7 @@ * under the License. */ -def result = new File(basedir, 'result.txt').text; +def result = new File(basedir, 'result.txt').text assert result == 'Apache Maven Help Plugin' -return true; +return true diff --git a/src/it/projects/evaluate-model-collections-maven4/verify.groovy b/src/it/projects/evaluate-model-collections-maven4/verify.groovy index b7f9909f..fa69be89 100644 --- a/src/it/projects/evaluate-model-collections-maven4/verify.groovy +++ b/src/it/projects/evaluate-model-collections-maven4/verify.groovy @@ -17,9 +17,13 @@ * under the License. */ -assert !new File(basedir, 'build.log').readLines().any { it.startsWith('[ERROR]') } +assert !new File(basedir, 'build.log').readLines().any { + it.startsWith('[ERROR]') +} -def parse = { name -> new groovy.xml.XmlSlurper().parse(new File(basedir, name)) } +def parse = { name -> + new groovy.xml.XmlSlurper().parse(new File(basedir, name)) +} def checkResource = { resource -> assert resource.name() == 'resource' assert resource.directory.text() == new File(basedir, 'src/main/resources').absolutePath @@ -67,7 +71,9 @@ assert profiles.profile.properties.'profile.key'.text() == 'profile value' it.name() in ['delegate', 'locations', 'importedFrom', 'pluginMap', 'reportSetMap', 'managementKey'] }.isEmpty() // no implementation classes of the immutable collections and no XStream back references - assert nodes.findAll { it.@class.size() > 0 || it.@reference.size() > 0 }.isEmpty() + assert nodes.findAll { + it.@class.size() > 0 || it.@reference.size() > 0 + }.isEmpty() } return true diff --git a/src/it/projects/evaluate-null-object-with-output/verify.groovy b/src/it/projects/evaluate-null-object-with-output/verify.groovy index b8feaeae..fba566e9 100644 --- a/src/it/projects/evaluate-null-object-with-output/verify.groovy +++ b/src/it/projects/evaluate-null-object-with-output/verify.groovy @@ -17,7 +17,7 @@ * under the License. */ -def result = new File(basedir, 'result.txt').text; +def result = new File(basedir, 'result.txt').text assert result == 'null object or invalid expression' -return true; +return true diff --git a/src/it/projects/evaluate-null-object/verify.groovy b/src/it/projects/evaluate-null-object/verify.groovy index a26b256d..8852942d 100644 --- a/src/it/projects/evaluate-null-object/verify.groovy +++ b/src/it/projects/evaluate-null-object/verify.groovy @@ -17,7 +17,7 @@ * under the License. */ -def result = new File(basedir, 'build.log').text; -assert result.contains( 'null object or invalid expression' ) +def result = new File(basedir, 'build.log').text +assert result.contains('null object or invalid expression') -return true; +return true diff --git a/src/it/projects/evaluate-settings-servers/verify.groovy b/src/it/projects/evaluate-settings-servers/verify.groovy index a76a4dca..9b621384 100644 --- a/src/it/projects/evaluate-settings-servers/verify.groovy +++ b/src/it/projects/evaluate-settings-servers/verify.groovy @@ -25,5 +25,9 @@ assert result.password.text() == 'server-password' assert result.passphrase.text() == 'server-passphrase' assert result.depthFirst().findAll { it.name() == 'delegate' }.isEmpty() -assert result.depthFirst().findAll { it.name() in ['locations', 'importedFrom'] }.isEmpty() -assert result.depthFirst().findAll { it.@class.size() > 0 || it.@reference.size() > 0 }.isEmpty() +assert result.depthFirst().findAll { + it.name() in ['locations', 'importedFrom'] +}.isEmpty() +assert result.depthFirst().findAll { + it.@class.size() > 0 || it.@reference.size() > 0 +}.isEmpty() diff --git a/src/it/projects/evaluate-with-expression-with-output/verify.groovy b/src/it/projects/evaluate-with-expression-with-output/verify.groovy index a688ded1..7f31461e 100644 --- a/src/it/projects/evaluate-with-expression-with-output/verify.groovy +++ b/src/it/projects/evaluate-with-expression-with-output/verify.groovy @@ -17,10 +17,10 @@ * under the License. */ -def result = new File(basedir, 'result.txt').text; +def result = new File(basedir, 'result.txt').text assert result == 'Maven Foo Bar' -def log = new File(basedir, 'build.log').text; +def log = new File(basedir, 'build.log').text assert log.contains('[INFO] Result of evaluation written to') -return true; +return true diff --git a/src/it/projects/evaluate/verify.groovy b/src/it/projects/evaluate/verify.groovy index daf3a56b..3a6754e1 100644 --- a/src/it/projects/evaluate/verify.groovy +++ b/src/it/projects/evaluate/verify.groovy @@ -17,7 +17,7 @@ * under the License. */ -def result = new File(basedir, 'build.log').text; -assert result.contains( 'The description.' ) +def result = new File(basedir, 'build.log').text +assert result.contains('The description.') -return true; +return true