Describe the bug
I am trying to consume new feature expansion variables with liberty maven plugin version 3.12.1. I followed this documentation for windows operating system.
When I try to run liberty tools in dev mode then I noticed expansion variables are not processed properly. I am not sure if this is tools defect or we need an improvement to our docs.
LIBERTY_INSTALL_DIR=C:\MyData\LibertyInstalls
IBM_JAVA_SEMERU_HOME=C:\MyData\java\ibm-semeru-certified
JAVA_HOME=!IBM_JAVA_SEMERU_HOME!\jdk-21.0.10+7
[INFO] Resolving Property IBM_JAVA_SEMERU_HOME for expression !IBM_JAVA_SEMERU_HOME!jdk-21.0.10+7. Resolved expression value is C:MyDatajavaibm-semeru-certified
I have to use escape back slash \ for the windows path separator to work then the expansion variables processed correctly. Here are the changes that I made in server.env file.
LIBERTY_INSTALL_DIR=C:\\MyData\\LibertyInstalls
IBM_JAVA_SEMERU_HOME=C:\\MyData\\java\\ibm-semeru-certified
JAVA_HOME=!IBM_JAVA_SEMERU_HOME!\\jdk-21.0.10+7
[INFO] Resolving Property IBM_JAVA_SEMERU_HOME for expression !IBM_JAVA_SEMERU_HOME!\jdk-21.0.10+7. Resolved expression value is C:\MyData\java\ibm-semeru-certified
I think we need to fix the documentation or fix the tools code when processing these expansion variables.
Steps to Reproduce
Install liberty latest build on Windows
Create liberty server with expansion variables in server.env variables as stated in this problem above.
Start liberty server in dev mode using Liberty tools eclipse plugin
You can see in the console how these variables are processing
Expected behavior
I think we need to change the documentation or fix the tools code when processing these expansion variables.
Diagnostic information:
- OpenLiberty Version: wlp-1.0.116.cl260920260730-0309
- Affected feature(s) [e.g. mpHealth-3.0]
- Java Version: 21.0.10, 21.0.10+7-LTS
Additional context
Add any other context about the problem here.
Describe the bug
I am trying to consume new feature
expansion variableswith liberty maven plugin version3.12.1. I followed this documentation for windows operating system.When I try to run liberty tools in dev mode then I noticed expansion variables are not processed properly. I am not sure if this is tools defect or we need an improvement to our docs.
I have to use escape back slash
\for the windows path separator to work then the expansion variables processed correctly. Here are the changes that I made inserver.envfile.I think we need to fix the documentation or fix the tools code when processing these expansion variables.
Steps to Reproduce
Install liberty latest build on Windows
Create liberty server with expansion variables in
server.envvariables as stated in this problem above.Start liberty server in
devmode using Liberty tools eclipse pluginYou can see in the console how these variables are processing
Expected behavior
I think we need to change the documentation or fix the tools code when processing these expansion variables.
Diagnostic information:
Additional context
Add any other context about the problem here.