Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3715

JBOSS_HOME is unset in powershell scripts

    XMLWordPrintable

Details

    • Hide
      PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin> $env:JBOSS_HOME="C:\Users\Admin\Desktop\jboss-eap-7.0"
      PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin> $env:JBOSS_HOME
      C:\Users\Admin\Desktop\jboss-eap-7.0
      PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin> .\jboss-cli.ps1
      You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
      [disconnected /] exit
      PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin> $env:JBOSS_HOME
      PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin>
      
      Show
      PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin> $env:JBOSS_HOME="C:\Users\Admin\Desktop\jboss-eap-7.0" PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin> $env:JBOSS_HOME C:\Users\Admin\Desktop\jboss-eap-7.0 PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin> .\jboss-cli.ps1 You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands. [disconnected /] exit PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin> $env:JBOSS_HOME PS C:\Users\Admin\Desktop\jboss-eap-7.1\bin>
    • Workaround Exists
    • Hide

      The only workaround is set the env variable all the time after any execution.

      Show
      The only workaround is set the env variable all the time after any execution.

    Description

      When using ps1 (power-shell) scripts in a windows environment the JBOSS_HOME environment variable is always unset at the end. For example using the jboss-cli.ps1 script.

      That variable can be set by the user and this not be affected by the execution of the scripts.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: