directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1078310 - /directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java
Date Sat, 05 Mar 2011 16:42:41 GMT
Author: seelmann
Date: Sat Mar  5 16:42:41 2011
New Revision: 1078310

URL: http://svn.apache.org/viewvc?rev=1078310&view=rev
Log:
Fix class path split under Windows

Modified:
    directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java

Modified: directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java?rev=1078310&r1=1078309&r2=1078310&view=diff
==============================================================================
--- directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java
(original)
+++ directory/shared/trunk/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java
Sat Mar  5 16:42:41 2011
@@ -140,7 +140,8 @@ public class OsgiUtils
     public static Set<File> getClasspathCandidates( FileFilter filter )
     {
         Set<File> candidates = new HashSet<File>();
-        String[] cpElements = System.getProperty( "java.class.path" ).split( ":" );
+        String separator = System.getProperty( "path.separator" );
+        String[] cpElements = System.getProperty( "java.class.path" ).split( separator );
         
         for ( String element : cpElements )
         {



Mime
View raw message