merge #131 - Fixing examples on windows

This commit is contained in:
Andy Taylor 2015-03-03 07:28:23 +00:00
commit 806b9d7e3f
1 changed files with 4 additions and 4 deletions

View File

@ -98,14 +98,14 @@ public class ActiveMQBootstrap
{
//extendPluginClasspath(configurationDir);
configuration = new FileConfiguration();
File file = new File(configurationDir + "/" + "activemq-configuration.xml");
File file = new File(new File(configurationDir), "activemq-configuration.xml");
jmsFileConfiguration = new FileJMSConfiguration();
FileDeploymentManager deploymentManager = new FileDeploymentManager(file.toURI().toURL().toExternalForm());
FileDeploymentManager deploymentManager = new FileDeploymentManager(file.toURI().toString());
deploymentManager.addDeployable((FileConfiguration)configuration);
deploymentManager.addDeployable((FileJMSConfiguration) jmsFileConfiguration);
securityConfiguration = new FileSecurityConfiguration("file://" + configurationDir + "/" + "activemq-users.properties",
"file://" + configurationDir + "/" + "activemq-roles.properties",
securityConfiguration = new FileSecurityConfiguration(new File(configurationDir, "activemq-users.properties").toURI().toString(),
new File(configurationDir, "activemq-roles.properties").toURI().toString(),
"guest",
false,
null);