-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
---
-
---
It would be of great value to have a CLI script special property, which would be resolved before execution, and which would point to the directory of the script being executed, similar to ${project.basedir} on Maven.
This kind of property would be quite useful as an anchor to calculate relative paths to the script, instead of relative to where we are invoking the script execution. As an example please look at https://github.com/wildfly/quickstart/blob/main/http-custom-mechanism/add-custom-module.cli , a script which needs to executed in that directory, otherwise will fail due to the relative path custom-module/..., if we had something like ${script.basedir}/custom-module/... it would work when executed from everywhere, for both Maven server provisioning and jboss-cli.sh.
This special property resolving would need to be supported by all tooling, including jboss-cli.sh and WildFly Maven Plugin.