[jboss-jira] [JBoss JIRA] (WFCORE-3909) jboss-cli script does not delegate -D properties to java process

Marek Marusic (JIRA) issues at jboss.org
Mon Jul 30 03:13:00 EDT 2018


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

Marek Marusic reassigned WFCORE-3909:
-------------------------------------

    Assignee: Marek Marusic  (was: Jean-Francois Denise)


> jboss-cli script does not delegate -D properties to java process
> ----------------------------------------------------------------
>
>                 Key: WFCORE-3909
>                 URL: https://issues.jboss.org/browse/WFCORE-3909
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI, Scripts
>    Affects Versions: 5.0.0.Final
>            Reporter: Erich Duda
>            Assignee: Marek Marusic
>
> *Scenario:* I want to change logging configuration of CLI using system properties. My expectation is that I just put the properties on command line as arguments.
> {code}
> ./jboss-cli.sh -Dlogging.configuration=... -Djboss.cli.log.level=TRACE -Djboss.cli.log.level=TRACE
> {code}
> However what I actually have to do is to put the properties into the {{JAVA_OPTS}} env variable.
> {code}
> JAVA_OPTS="-Dlogging.configuration=... -Djboss.cli.log.level=TRACE -Djboss.cli.log.level=TRACE" ./jboss-cli.sh
> {code}
> This is different behavior than I am used to standalone.sh script. IMO it is more natural to put the properties as arguments of the script.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list