activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r985198 - /activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
Date Fri, 13 Aug 2010 13:45:25 GMT
Author: dejanb
Date: Fri Aug 13 13:45:24 2010
New Revision: 985198

URL: http://svn.apache.org/viewvc?rev=985198&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2869 - starting in a path with spaces

Modified:
    activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java

Modified: activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java?rev=985198&r1=985197&r2=985198&view=diff
==============================================================================
--- activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java (original)
+++ activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java Fri
Aug 13 13:45:24 2010
@@ -301,7 +301,7 @@ public class Main {
                     File dir = iter.next();
                     // try{ System.out.println("Adding to classpath: " +
                     // dir.getCanonicalPath()); }catch(Exception e){}
-                    urls.add(dir.toURL());
+                    urls.add(dir.toURI().toURL());
                 }
 
                 for (Iterator<File> iter = extensions.iterator(); iter.hasNext();)
{
@@ -329,7 +329,7 @@ public class Main {
                                     // classpath: " +
                                     // files[j].getCanonicalPath());
                                     // }catch(Exception e){}
-                                    urls.add(files[j].toURL());
+                                    urls.add(files[j].toURI().toURL());
                                 }
                             }
                         }



Mime
View raw message