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

commit a003c0fe58774409c3bd681c542487260d68b6bd
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Thu Nov 26 04:05:14 2026 +0000

    Use the formatted script style in the examples
---
 src/site/markdown/examples/pre-post-build-script.md.vm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/site/markdown/examples/pre-post-build-script.md.vm 
b/src/site/markdown/examples/pre-post-build-script.md.vm
index 43f6a57..d904df2 100644
--- a/src/site/markdown/examples/pre-post-build-script.md.vm
+++ b/src/site/markdown/examples/pre-post-build-script.md.vm
@@ -125,8 +125,8 @@ Use `assert` with a message instead of a `try` and `catch` 
block that returns `f
 expression when the assertion fails, so the message in `build.log` shows what 
the script found:
 
 ```groovy
-def log = new File( basedir, "build.log" )
-assert log.text.contains( "BUILD SUCCESS" ) : "build.log does not report a 
successful build"
+def log = new File(basedir, "build.log")
+assert log.text.contains("BUILD SUCCESS") : "build.log does not report a 
successful build"
 ```
 
 ## File encoding
@@ -135,8 +135,8 @@ Read files with an explicit character set. The `text` 
property and the `getText(
 argument use the platform character set, so the same script can read different 
content on different machines:
 
 ```groovy
-def lines = new File( basedir, "target/report.txt" ).readLines( 'UTF-8' )
-def content = new File( basedir, "target/report.txt" ).getText( 'UTF-8' )
+def lines = new File(basedir, "target/report.txt").readLines('UTF-8')
+def content = new File(basedir, "target/report.txt").getText('UTF-8')
 ```
 
 ## Classpath

Reply via email to