Open ericglau opened 4 years ago
Just want to add that currently the code uses the following:
private final String PROJECT_ROOT_TARGET_LIBS = "target/libs";
which should not be hardcode and needs to change to the path of project.getBuild().getDirectory().
Maven projects can have the target directory outside of the project root, see here e.g.
For dev mode with containers, the loose application xml would currently show something like the following, which does not work since the paths are not in the container.
Consider adding another variable for the build dir in addition to the project root, and use that for variable substitution as well.
If the build dir is outside of the project root, it would also need to be mounted by the
docker run
command.(Related Gradle issue: https://github.com/OpenLiberty/ci.gradle/issues/489)