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

Unable to pass any attribute to jboss-cli.ps1 script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.Alpha5
    • None
    • CLI, Scripts
    • None

      Unable to pass any attribute to jboss-cli.ps1 script

      C:\wildfly\wildfly-12.0.0.Final\bin> PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 --help
      '--help-Dcom.ibm.jsse2.overrideDefaultTLS=true' is not a valid operation name.
      
      C:\wildfly\wildfly-12.0.0.Final\bin> PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 --version
      '--version-Dcom.ibm.jsse2.overrideDefaultTLS=true' is not a valid operation name
      .
      
      C:\wildfly\wildfly-12.0.0.Final\bin> PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 -c
      '-c-Dcom.ibm.jsse2.overrideDefaultTLS=true' is not a valid operation name.
      
      C:\wildfly\wildfly-12.0.0.Final\bin> PowerShell -ExecutionPolicy Bypass -File 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 /]
      

      I am using PowerShell 4.0

      PS C:\> $PSVersionTable.PSVersion
      
      Major  Minor  Build  Revision
      -----  -----  -----  --------
      4      0      -1     -1
      
      
      PS C:\>
      

      This behaviour is caused by this change:

      https://github.com/wildfly/wildfly-core/blame/master/core-feature-pack/src/main/resources/content/bin/jboss-cli.ps1#L13

              jdenise@redhat.com Jean Francois Denise
              tterem@redhat.com Tomas Terem (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: