jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1212919 - /jmeter/trunk/test/src/org/apache/jmeter/resources/PackageTest.java
Date Sat, 10 Dec 2011 23:06:26 GMT
Author: sebb
Date: Sat Dec 10 23:06:26 2011
New Revision: 1212919

URL: http://svn.apache.org/viewvc?rev=1212919&view=rev
Log:
Fix up crash on Windows

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/resources/PackageTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/resources/PackageTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/resources/PackageTest.java?rev=1212919&r1=1212918&r2=1212919&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/resources/PackageTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/resources/PackageTest.java Sat Dec 10 23:06:26
2011
@@ -255,9 +255,10 @@ public class PackageTest extends TestCas
 			if(file2.isDirectory()) {
 				findFile(file2, set, filenameFilter);
 			} else {
-				int indexOfOrg = file2.getAbsolutePath().indexOf("/org");
-				int lastIndex = file2.getAbsolutePath().lastIndexOf(".");
-				set.add(file2.getAbsolutePath().substring(indexOfOrg, lastIndex));
+				String absPath2 = file2.getAbsolutePath().replace('\\', '/'); // Fix up Windows paths
+                int indexOfOrg = absPath2.indexOf("/org");
+				int lastIndex = absPath2.lastIndexOf(".");
+				set.add(absPath2.substring(indexOfOrg, lastIndex));
 			}
 		}
     	



Mime
View raw message