Support Windows paths to config files on CLI
This commit is contained in:
parent
806b9d7e3f
commit
31bee43d63
|
@ -63,6 +63,9 @@ public class Run implements Action
|
|||
configuration = "xml:" + activemqHome + "/config/non-clustered/bootstrap.xml";
|
||||
}
|
||||
|
||||
// To support Windows paths as explained above.
|
||||
configuration = configuration.replace("\\", "/");
|
||||
|
||||
System.out.println("Loading configuration file: " + configuration);
|
||||
|
||||
BrokerDTO broker = BrokerFactory.createBrokerConfiguration(configuration);
|
||||
|
|
|
@ -43,6 +43,10 @@ public class Stop implements Action
|
|||
{
|
||||
configuration = "xml:" + activemqHome + "/config/non-clustered/bootstrap.xml";
|
||||
}
|
||||
|
||||
// To support Windows paths as explained above.
|
||||
configuration = configuration.replace("\\", "/");
|
||||
|
||||
BrokerDTO broker = BrokerFactory.createBrokerConfiguration(configuration);
|
||||
|
||||
String fileName = new URI(broker.server.configuration).getSchemeSpecificPart();
|
||||
|
|
Loading…
Reference in New Issue