maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r720050 - /maven/components/trunk/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenRealmManagerTest.java
Date Sun, 23 Nov 2008 21:42:01 GMT
Author: bentmann
Date: Sun Nov 23 13:42:00 2008
New Revision: 720050

URL: http://svn.apache.org/viewvc?rev=720050&view=rev
Log:
[MNG-3664] Various unit tests from maven-core fail when run from a directory with space in
its path

Modified:
    maven/components/trunk/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenRealmManagerTest.java

Modified: maven/components/trunk/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenRealmManagerTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenRealmManagerTest.java?rev=720050&r1=720049&r2=720050&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenRealmManagerTest.java
(original)
+++ maven/components/trunk/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenRealmManagerTest.java
Sun Nov 23 13:42:00 2008
@@ -6,6 +6,7 @@
 import org.codehaus.plexus.PlexusTestCase;
 import org.codehaus.plexus.logging.Logger;
 import org.codehaus.plexus.logging.console.ConsoleLogger;
+import org.codehaus.plexus.util.FileUtils;
 
 import java.io.File;
 import java.net.URL;
@@ -35,10 +36,10 @@
 
         assertNotSame( ext1, ext2 );
 
-        ext1.setFile( new File( jarResource.getPath() ) );
+        ext1.setFile( FileUtils.toFile( jarResource ) );
         ext1.setResolved( true );
 
-        ext2.setFile( new File( jarResource.getPath() ) );
+        ext2.setFile( FileUtils.toFile( jarResource ) );
         ext2.setResolved( true );
 
         Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" );



Mime
View raw message