maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r563834 - /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
Date Wed, 08 Aug 2007 12:35:50 GMT
Author: brett
Date: Wed Aug  8 05:35:49 2007
New Revision: 563834

URL: http://svn.apache.org/viewvc?view=rev&rev=563834
Log:
remove JDK 1.4 specifics in the booter

Modified:
    maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java?view=diff&rev=563834&r1=563833&r2=563834
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
(original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
Wed Aug  8 05:35:49 2007
@@ -851,11 +851,11 @@
                 }
                 else if ( name.startsWith( "classPathUrl." ) )
                 {
-                    classPathUrls.put(Integer.valueOf(name.split("\\.")[1]), p.getProperty(
name ));
+                    classPathUrls.put(Integer.valueOf(name.substring(name.indexOf('.') +
1)), p.getProperty( name ));
                 }
                 else if ( name.startsWith( "surefireClassPathUrl." ) )
                 {
-                    surefireClassPathUrls.put(Integer.valueOf(name.split("\\.")[1]), p.getProperty(
name ));
+                    surefireClassPathUrls.put(Integer.valueOf(name.substring(name.indexOf('.')
+ 1)), p.getProperty( name ));
                 }
                 else if ( name.startsWith( "surefireBootClassPathUrl." ) )
                 {



Mime
View raw message