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

Unify "-server" option in windows scripts (ps1, bat) for domain mode (and its servers) on all JDKs

XMLWordPrintable

      Unify "-server" option in windows scripts (ps1, bat) for domain mode (and its servers) on all JDKs

      Domain use "-server" option in unix, windows bat. Domain doesn't use "-server" option in windows ps1 scripts. Same for JVMs of domain servers.

      I prefer to add "-server" option to ps1 scripts.

      domain.ps1 - "-server" option is missing
      PS C:\Users\Administrator\playground\wfly.15\wildfly\bin> .\domain.ps1
      =================================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: C:\Users\Administrator\playground\wfly.15\wildfly
      
        JAVA: C:\Program Files\Java\jdk1.8.0_121\bin\java.exe
      
        MODULE_OPTS:
      
        JAVA_OPTS: -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman
      
      =================================================================================
      
      ...
      
      domain.bat - "-server" option is listed in JAVA_OPTS
      C:\Users\Administrator\playground\wfly.15\wildfly\bin>domain.bat
      Calling "C:\Users\Administrator\playground\wfly.15\wildfly\bin\domain.conf.bat"
      Setting JAVA property to "C:\Program Files\Java\jdk1.8.0_121\bin\java"
      ===============================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: "C:\Users\Administrator\playground\wfly.15\wildfly"
      
        JAVA: "C:\Program Files\Java\jdk1.8.0_121\bin\java"
      
        JAVA_OPTS: "-Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server"
      
      ===============================================================================
      
      ...
      

      cc: jperkins-rhn

              lvydra Lukas Vydra
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: