You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Karsten Otto (Jira)" <se...@james.apache.org> on 2021/11/11 12:25:00 UTC

[jira] [Updated] (JAMES-3668) Extra system properties from configuration file

     [ https://issues.apache.org/jira/browse/JAMES-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karsten Otto updated JAMES-3668:
--------------------------------
    Description: 
Many aspects of JVM execution for James can be tweaked by system properties. However, a lot of them will clutter the command line and can become difficult to manage.

The solution is to read a properties file and set the contents as system properties. Since this can affect various class initializations, it should be done as soon as possible, e.g. immediately as first line of the server main() method.

This proposal adds a small utility class for this purpose. It will read a configuration file "conf/jvm.properties" if present, otherwise do nothing. The location of the file may be overridden by a system property "extra.props" for quick testing.

T-Shirt size S.

  was:
Many aspects of JVM execution for James can be tweaked by system properties. However, a lot of them will clutter the command line and can become difficult to manage.

The solution is to read a properties file and set the contents as system properties. Since this can affect various class initializations, it should be done as soon as possible, e.g. immediately as first line of the server main() method.

This proposal adds a small utility class for this purpose. It will read a configuration file "conf/jvm.properties" if present, otherwise do nothing. The location of the file may be overridden by a system property "extra.props" for quick testing.


> Extra system properties from configuration file
> -----------------------------------------------
>
>                 Key: JAMES-3668
>                 URL: https://issues.apache.org/jira/browse/JAMES-3668
>             Project: James Server
>          Issue Type: Improvement
>          Components: configuration
>    Affects Versions: master
>            Reporter: Karsten Otto
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Many aspects of JVM execution for James can be tweaked by system properties. However, a lot of them will clutter the command line and can become difficult to manage.
> The solution is to read a properties file and set the contents as system properties. Since this can affect various class initializations, it should be done as soon as possible, e.g. immediately as first line of the server main() method.
> This proposal adds a small utility class for this purpose. It will read a configuration file "conf/jvm.properties" if present, otherwise do nothing. The location of the file may be overridden by a system property "extra.props" for quick testing.
> T-Shirt size S.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org