Author: bentmann
Date: Mon Feb  9 19:32:07 2009
New Revision: 742694

URL: http://svn.apache.org/viewvc?rev=742694&view=rev
Log:
o Fixed IT to account for local repo being on another drive than test

Modified:
    
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java

Modified: 
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java
URL: 
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java?rev=742694&r1=742693&r2=742694&view=diff
==============================================================================
--- 
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java
 (original)
+++ 
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java
 Mon Feb  9 19:32:07 2009
@@ -56,7 +56,11 @@
          * filesystem but will make the path drive-relative on Windows so we 
can check how Maven handles it.
          */
         String repoDir = new File( verifier.localRepo ).getAbsolutePath();
-        verifier.setLocalRepo( repoDir.substring( repoDir.indexOf( 
File.separator ) ) );
+        if ( getRoot( new File( repoDir ) ).equals( getRoot( testDir ) ) )
+        {
+            // NOTE: We can only test the local repo if it resides on the same 
drive as the test
+            verifier.setLocalRepo( repoDir.substring( repoDir.indexOf( 
File.separator ) ) );
+        }
 
         verifier.setAutoclean( false );
         verifier.deleteDirectory( "target" );


Reply via email to