activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbert...@apache.org
Subject [1/2] activemq-artemis git commit: ARTEMIS-601 Fixing use of spaces on the server and reloading
Date Tue, 09 Aug 2016 15:52:31 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 6b0c08901 -> d108d87cb


ARTEMIS-601 Fixing use of spaces on the server and reloading


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/754976f8
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/754976f8
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/754976f8

Branch: refs/heads/master
Commit: 754976f8c11b8bffd2f8c2bc2564dbb46d2c8f3e
Parents: 6b0c089
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Tue Aug 9 11:42:26 2016 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue Aug 9 11:43:04 2016 -0400

----------------------------------------------------------------------
 .../activemq/artemis/core/server/impl/ActiveMQServerImpl.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/754976f8/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
index 058b938..cc9ef1d 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
@@ -2358,7 +2358,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
 
    }
 
-   private final class ConfigurationFileReloader extends Thread {
+   private final class ConfigurationFileReloader implements Runnable {
       long lastModified;
       boolean first = true;
       ActiveMQServer server;
@@ -2371,7 +2371,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
       public void run() {
          try {
             URL url = server.getConfiguration().getConfigurationUrl();
-            long currentLastModified = new File(url.toURI()).lastModified();
+            long currentLastModified = new File(url.getPath()).lastModified();
             if (first) {
                first = false;
                lastModified = currentLastModified;


Mime
View raw message