[jboss-jira] [JBoss JIRA] (AS7-4420) CLONE - standalone.bat sets -client by default and standalone.sh sets -server by default

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Thu Apr 5 14:30:48 EDT 2012


     [ https://issues.jboss.org/browse/AS7-4420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry moved JBPAPP-8646 to AS7-4420:
-----------------------------------------------

              Project: Application Server 7  (was: JBoss Enterprise Application Platform)
                  Key: AS7-4420  (was: JBPAPP-8646)
             Workflow: GIT Pull Request workflow   (was: jira)
    Affects Version/s: 7.1.1.Final
                           (was: EAP 6.0.0 ER 4)
          Component/s: Scripts
                           (was: Scripts and Commands)
             Security:     (was: Public)
        Fix Version/s: 7.1.2.Final-redhat1
                           (was: EAP 6.0.0 ER 5)
       Docs QE Status:   (was: NEW)

    
> CLONE - standalone.bat sets -client by default and standalone.sh sets -server by default
> ----------------------------------------------------------------------------------------
>
>                 Key: AS7-4420
>                 URL: https://issues.jboss.org/browse/AS7-4420
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Scripts
>    Affects Versions: 7.1.1.Final
>            Reporter: Rostislav Svoboda
>            Assignee: Brian Stansberry
>             Fix For: 7.1.2.Final-redhat1
>
>
> standalone.bat sets -client by default if -server or -client isn't specified in JAVA_OPTS
> standalone.sh sets -server by default if -server or -client isn't specified in JAVA_OPTS (with exception for darwin)
> I think EAP should set -server by default.
> Part of standalone.bat
> {code}
>   rem Add -client to the JVM options, if supported (32 bit VM), and not overriden
>   echo "%JAVA_OPTS%" | findstr /I \-server > nul
>   if errorlevel == 1 (
>     "%JAVA%" -client -version 2>&1 | findstr /I /C:"Client VM" > nul
>     if not errorlevel == 1 (
>       set "JAVA_OPTS=-client %JAVA_OPTS%"
>     )
>   )
> {code}
> Part of standalone.sh
> {code}
>     CLIENT_VM=false
>     if [ "x$CLIENT_SET" != "x" ]; then
>         CLIENT_VM=true
>     elif [ "x$SERVER_SET" = "x" ]; then
>         if $darwin && [ "$JVM_OPTVERSION" = "-d32" ]; then
>             # Prefer client for Macs, since they are primarily used for development
>             CLIENT_VM=true
>             PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS -client"
>         else
>             PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS -server"
>         fi
>     fi
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list