maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r675441 - /maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-3475-baseAlignedDir/plugin/src/main/java/test/Mojo3475.java
Date Thu, 10 Jul 2008 05:11:55 GMT
Author: jdcasey
Date: Wed Jul  9 22:11:55 2008
New Revision: 675441

URL: http://svn.apache.org/viewvc?rev=675441&view=rev
Log:
Use a different approach to verify that a given path is absolute.

Modified:
    maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-3475-baseAlignedDir/plugin/src/main/java/test/Mojo3475.java

Modified: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-3475-baseAlignedDir/plugin/src/main/java/test/Mojo3475.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-3475-baseAlignedDir/plugin/src/main/java/test/Mojo3475.java?rev=675441&r1=675440&r2=675441&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-3475-baseAlignedDir/plugin/src/main/java/test/Mojo3475.java
(original)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-3475-baseAlignedDir/plugin/src/main/java/test/Mojo3475.java
Wed Jul  9 22:11:55 2008
@@ -46,10 +46,11 @@
     private void testDirectoryAbsolutePath( String directory, List failed )
         throws MojoExecutionException
     {
-        if ( !directory.equals( new File( directory ).getAbsolutePath() ) )
+        if ( !new File( directory ).isAbsolute() )
         {
             failed.add( directory );
         }
+        
         System.out.println( directory );
     }
 }



Mime
View raw message