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 44fd185a3d94a931cd85370869f70b082234d226
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Thu Nov 26 12:47:42 2026 +0000

    Read a build output with an explicit character set in the assertion example
---
 src/site/markdown/examples/pre-post-build-script.md.vm | 4 ++--
 1 file changed, 2 insertions(+), 2 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 97e96ef..8d2fee2 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 report = new File(basedir, "target/report.txt").getText('UTF-8')
+assert report.contains("3 modules") : "target/report.txt does not list all 
modules"
 ```
 
 ## File encoding

Reply via email to