incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu...@apache.org
Subject svn commit: r1403961 - /incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/SystemUtil.java
Date Wed, 31 Oct 2012 03:24:23 GMT
Author: liuzhe
Date: Wed Oct 31 03:24:23 2012
New Revision: 1403961

URL: http://svn.apache.org/viewvc?rev=1403961&view=rev
Log:
Fix getClassesInPackage doesn't work if the path has special characters.

Modified:
    incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/SystemUtil.java

Modified: incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/SystemUtil.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/SystemUtil.java?rev=1403961&r1=1403960&r2=1403961&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/SystemUtil.java
(original)
+++ incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/SystemUtil.java
Wed Oct 31 03:24:23 2012
@@ -547,7 +547,7 @@ public class SystemUtil {
 			while (urls.hasMoreElements()) {
 				URL url = urls.nextElement();
 				if ("file".equals(url.getProtocol())) {
-					findClasses(packageName, new File(url.getFile()), classes);
+					findClasses(packageName, new File(url.toURI()), classes);
 				} else if ("jar".equals(url.getProtocol())) {
 					String urlStr = url.toString();
 					int i = urlStr.indexOf('!');



Mime
View raw message