ARTEMIS-601 Fixing use of spaces on the server and reloading
This commit is contained in:
parent
6b0c089017
commit
754976f8c1
|
@ -2358,7 +2358,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class ConfigurationFileReloader extends Thread {
|
private final class ConfigurationFileReloader implements Runnable {
|
||||||
long lastModified;
|
long lastModified;
|
||||||
boolean first = true;
|
boolean first = true;
|
||||||
ActiveMQServer server;
|
ActiveMQServer server;
|
||||||
|
@ -2371,7 +2371,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
URL url = server.getConfiguration().getConfigurationUrl();
|
URL url = server.getConfiguration().getConfigurationUrl();
|
||||||
long currentLastModified = new File(url.toURI()).lastModified();
|
long currentLastModified = new File(url.getPath()).lastModified();
|
||||||
if (first) {
|
if (first) {
|
||||||
first = false;
|
first = false;
|
||||||
lastModified = currentLastModified;
|
lastModified = currentLastModified;
|
||||||
|
|
Loading…
Reference in New Issue