Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add system property for setting read only server config #279

Merged
merged 1 commit into from
May 8, 2023

Conversation

fcbrooks
Copy link
Contributor

After this change to Wildfly core

wildfly/wildfly-core@a958b5e

Driven by this issue

https://issues.redhat.com/browse/WFCORE-5792

A server config file that is stored outside of the managed Wildfly server's configuration directory can no longer be provided via the jboss.server.config.file.name system property. A read-only server config must be used if the config file is outside the configuration directory.

This is problematic if, for example, one keeps a test server config file under version control in a project's test resources directory while having the managed Wildfly instance outside of the code base, and one wants to continue to utilize system properties to set the server config. Setting the server config, regardless of location, via a system property is highly convenient and flexible. This change maintains that ability by the introduction of an additional system property named jboss.server.config.file.name.readonly that sets the read-only server config allowing server config files outside of the server configuration directory to be specified via a system property.

After this change to Wildfly core

wildfly/wildfly-core@a958b5e

Driven by this issue

https://issues.redhat.com/browse/WFCORE-5792

A server config file that is stored outside of the managed Wildfly
server's configuration directory can no longer be provided via the
jboss.server.config.file.name system property.  A read-only server
config must be used if the config file is outside the configuration
directory.

This is problematic if, for example, one keeps a test server config file
under version control in a project's test resources directory while
having the managed Wildfly instance outside of the code base, and one
wants to continue to utilize system properties to set the server config.
Setting the server config, regardless of location, via a system property
is highly convenient and flexible.  This change maintains that ability
by the introduction of an additional system property named
jboss.server.config.file.name.readonly that sets the read-only server
config allowing server config files outside of the server configuration
directory to be specified via a system property.
@jamezp jamezp merged commit e3a5f27 into wildfly:main May 8, 2023
@jamezp jamezp mentioned this pull request May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants