[jboss-jira] [JBoss JIRA] (WFCORE-717) standalone.sh duplicates some options in JAVA_OPTS
Marek Kopecký (JIRA)
issues at jboss.org
Wed May 27 08:25:02 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marek Kopecký reassigned WFCORE-717:
------------------------------------
Assignee: Tomaz Cerar (was: Marek Kopecký)
> standalone.sh duplicates some options in JAVA_OPTS
> --------------------------------------------------
>
> Key: WFCORE-717
> URL: https://issues.jboss.org/browse/WFCORE-717
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Affects Versions: 2.0.0.Alpha2
> Reporter: Marek Kopecký
> Assignee: Tomaz Cerar
>
> *Description of problem:*
> standalone.sh duplicates some options in JAVA_OPTS.
> *Steps to Reproduce:*
> # ./standalone.sh
> *Actual results:*
> ...
> JAVA_OPTS: -server -XX:+UseCompressedOops -server -XX:+UseCompressedOops -Xms64m ...
> ...
> *Expected results:*
> ...
> JAVA_OPTS: -server -XX:+UseCompressedOops -Xms64m ...
> ...
> *Additional info:*
> Option "-server" is set here:
> {code:bash}
> if [ "$PRESERVE_JAVA_OPTS" != "true" ]; then
> PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS -server"
> ...
> JAVA_OPTS="$PREPEND_JAVA_OPTS $JAVA_OPTS"
> fi
> {code}
> This part of code is in standalone.sh twice.
> Possible solutions:
> * Remove first repetition of {{if [ "$PRESERVE_JAVA_OPTS" != "true" ]; then ....... fi}} (like EAP 6)
> * Add {{PREPEND_JAVA_OPTS=""}} after {{JAVA_OPTS="$PREPEND_JAVA_OPTS $JAVA_OPTS"}} in first repetition of {{if [ "$PRESERVE_JAVA_OPTS" != "true" ]; then ....... fi}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list