-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Hallo,
we use io.openliberty.tools:liberty-gradle-plugin:3.9.4 and have a Gradle plugin that extends the functionality of the Open Liberty ci.gradle plugin.
Our plugin defines a task "copyLibertyShared" that fills the $WLP/usr/shared/config directory of the Open Liberty installation with some common configuration files. The "copyLibertyShared" task is configured to depend on the "libertyCreate" task. So if "copyLibertyShared" is called the task "installLiberty" is executed before "copyLibertyShared".
During the execution of "installLiberty" in this scenario we get the following output:
Gradle Daemon started in 3 s 28 ms
Task :buildSrc:compileJava NO-SOURCE
Task :buildSrc:compileGroovy UP-TO-DATE
Task :buildSrc:processResources NO-SOURCE
Task :buildSrc:classes UP-TO-DATE
Task :buildSrc:jar UP-TO-DATE
Task :MokkaConnector:compileJava UP-TO-DATE
Task :MokkaConnector:processResources UP-TO-DATE
Task :MokkaConnector:classes UP-TO-DATE
Task :MokkaConnector:jar UP-TO-DATE
Task :MokkaConnector:rarDistZip UP-TO-DATE
Task :mokkascripts:installLiberty
Invocation of Task.project at execution time has been deprecated. This will fail with an error in Gradle 10. This API is incompatible with the configuration cache, which will become the only mode supported by Gradle in a future release. Consult the upgrading guide for further information: https://docs.gradle.org/9.2.1/userguide/upgrading_version_7.html#task_project
[ant:get] Destination already exists (skipping): C:\Users\00000572\AppData\Local\Temp\wlp-cache\openliberty-jakartaee9.1-25.0.0.12.zip
[ant:server] Der Server MOKKA-Liberty wurde erstellt.
Task :mokkascripts:libertyCreate
[ant:server] CWWKM2001I: Invoke command ist ["D:\Programme\openLiberty\openLiberty-MOKKA\wlp\bin\server.bat", create, MOKKA-Liberty, --template=jakartaee9].
The default D:\Programme\openLiberty\openLiberty-MOKKA\wlp\usr\servers\MOKKA-Liberty\server.env file is overwritten by inlined configuration.
Task :mokkascripts:installFeature
Signaturen werden überprüft ...
<---------------------> 0,00%
Alle Funktionen wurden erfolgreich überprüft.
Task :mokkascripts:installFeature FAILED
[Incubating] Problems report is available at: file:///D:/IDEA-U/MOKKA/MokkaGradle/build/reports/problems/problems-report.html
9 actionable tasks: 3 executed, 6 up-to-date
FAILURE: Build failed with an exception.
- What went wrong:
**Execution failed for task ':mokkascripts:installFeature'.
io.openliberty.tools.common.plugins.util.PluginExecutionException: productInfo exited with return code 9009. The productInfo command run was
"D:\Programme\OpenLiberty\openLiberty-MOKKA\wlp\bin\productInfo.bat" validate**
I tried put a "rem" before the "@echo off" in the productInfo.bat file, but no more additional info ist dumped to the console then. It seems that the console output of the forked "productInfo.bat" ist not displayed in Gradle's output window.
After the error, I start the "copyLibertyShared" task again and then the Open Liberty installation is finished without any further error.
Any idea what could be the reason of the "productInfo.bat" error?
Best regards
Ulrich