Bug 819039 - [as7] code that discovers the config file names does not take the jboss.*.default.config sysprops into account
Summary: [as7] code that discovers the config file names does not take the jboss.*.def...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHQ 4.4.0
Assignee: Charles Crouch
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin
TreeView+ depends on / blocked
 
Reported: 2012-05-04 16:21 UTC by Ian Springer
Modified: 2015-02-01 23:28 UTC (History)
3 users (show)

Fixed In Version: 4.4
Clone Of:
Environment:
Last Closed: 2013-09-01 10:17:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2012-05-04 16:21:43 UTC
The following sysprops can optionally be specified to override the corresponding hard-coded default config file names:

jboss.server.default.config
jboss.host.default.config
jboss.domain.default.config

For details, see:

https://github.com/jbossas/jboss-as/pull/1455

We need to add support for these. Discovery logic should be:

String serverConfig = serverCmdLine.getClassOption(SERVER_CONFIG_OPTION);
if (serverConfig == null) {
   serverConfig = serverCmdLine.getSystemProperty("jboss.server.default.config");
}
if (serverConfig == null) {
   serverConfig = "standalone.xml";
}

The first if-block is the one that needs to be added for all three config files.

Comment 1 Ian Springer 2012-05-05 16:52:21 UTC
I fixed this as part of http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=26a25e8, since I was working in this exact part of the code.

Comment 4 Heiko W. Rupp 2013-09-01 10:17:50 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


Note You need to log in before you can comment on or make changes to this bug.