You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/12/31 15:02:33 UTC

[Bug 63049] New: Add support in system properties override from commandline (Enhancement)

https://bz.apache.org/bugzilla/show_bug.cgi?id=63049

            Bug ID: 63049
           Summary: Add support in system properties override from
                    commandline (Enhancement)
           Product: Tomcat 9
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: galusben@gmail.com
  Target Milestone: -----

System properties may be used in configuration files with the following
notation: ${propertyName}

System properties can be added by -Dpropname=propvalue in commandline or in
catalina.properties.

catalina.properties are stronger than the commandline arguments.

Meaning, if you set the same property in catalina.properties and in -D syntax,
than the catalina.properties will win.

It is expected that the commandline arguments will be stronger.

I suggest changing the order and making the commandline arguments stronger.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63049] Add support in system properties override from command line

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63049

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
dev@ list thread:
https://lists.apache.org/thread.html/8317a1a0d12b48b5746ee8e9e2eded1c00a0b458d3ecbc585c914f2b@%3Cdev.tomcat.apache.org%3E

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63049] Add support in system properties override from command line

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63049

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |enhancement
            Summary|Add support in system       |Add support in system
                   |properties override from    |properties override from
                   |commandline (Enhancement)   |command line

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63049] Add support in system properties override from commandline (Enhancement)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63049

--- Comment #1 from Igal Sapir <is...@apache.org> ---
I, too, expect System properties that are set via JVM args to take precedence
over properties set in config files.

If there is a concern over permissions of modifying files vs. execute, as Chris
pointed out in the mailing list, then perhaps this feature can be added as
"opt-in" with a "master switch" property that enables it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org