Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14095

[GSS](7.1.z) JBOSS_HOME is unset in powershell scripts

XMLWordPrintable

    • CR1
    • 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.
    • 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>
    • EAP 7.1.3

      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.

            rhn-engineering-lgao Lin Gao
            rhn-support-rmartinc Ricardo Martin Camarero
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified