Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19906

Property with location of CLI Script being executed

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • CLI
    • 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.

              jdenise@redhat.com Jean Francois Denise
              emartins@redhat.com Eduardo Martins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: