[
https://issues.jboss.org/browse/WFCORE-717?page=com.atlassian.jira.plugin...
]
Marek Kopecký moved JBEAP-195 to WFCORE-717:
--------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-717 (was: JBEAP-195)
Workflow: GIT Pull Request workflow (was: CDW v1)
Affects Version/s: 2.0.0.Alpha2
(was: EAP 7.0.0.DR2)
Component/s: Scripts
(was: Scripts)
Target Release: (was: EAP 7.0.0.GA)
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: Marek Kopecký
*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)