mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
Merge pull request #6584 from filipesoliveira/filipeoliveira/corda-3931
CORDA-3931 - Fixed a bug which was preventing the custom JVM arguments from being picked up when the command line "-f" flag was used
This commit is contained in:
commit
294c2aa514
@ -33,8 +33,8 @@ public class CordaCaplet extends Capsule {
|
|||||||
|
|
||||||
private Config parseConfigFile(List<String> args) {
|
private Config parseConfigFile(List<String> args) {
|
||||||
this.baseDir = getBaseDirectory(args);
|
this.baseDir = getBaseDirectory(args);
|
||||||
String config = getOption(args, "--config-file");
|
|
||||||
File configFile = (config == null) ? new File(baseDir, "node.conf") : new File(config);
|
File configFile = getConfigFile(args, baseDir);
|
||||||
try {
|
try {
|
||||||
ConfigParseOptions parseOptions = ConfigParseOptions.defaults().setAllowMissing(false);
|
ConfigParseOptions parseOptions = ConfigParseOptions.defaults().setAllowMissing(false);
|
||||||
Config defaultConfig = ConfigFactory.parseResources("corda-reference.conf", parseOptions);
|
Config defaultConfig = ConfigFactory.parseResources("corda-reference.conf", parseOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user