I have a post-build script written in Groovy in my maven-invoker-plugin setup. How can I access the console output of an integration test in this script? I want to check that certain text has been printed.
I think this is the property you are looking for:
Property: invoker.streamLogs
Default value: false
Description: Flag used to determine whether the build logs should be output to the normal mojo log.
See this method for how logging is handled:
整个日志存储在build.log
文件中,该文件位于logDirectory
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.