Author: brett Date: Fri Jun 1 01:09:39 2007 New Revision: 543422 URL: http://svn.apache.org/viewvc?view=rev&rev=543422 Log: merge -r541520 from branch
Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java?view=diff&rev=543422&r1=543421&r2=543422 ============================================================================== --- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java (original) +++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java Fri Jun 1 01:09:39 2007 @@ -19,6 +19,7 @@ * under the License. */ +import org.apache.maven.surefire.util.UrlUtils; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.jar.JarArchiver; import org.codehaus.plexus.archiver.jar.Manifest; @@ -229,7 +230,7 @@ for ( Iterator it = classPath.iterator(); it.hasNext(); ) { String el = (String) it.next(); - cp += " file://localhost/" + el + ( new File( el ).isDirectory() ? "/" : "" ); + cp += UrlUtils.getURL( new File( el ) ).toExternalForm() + " "; } Manifest.Attribute attr = new Manifest.Attribute( "Class-Path", cp.trim() );