Use a different approach to verify that a given path is absolute.

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@675441 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2008-07-10 05:11:55 +00:00
parent 210e018f69
commit 95e304ba43
1 changed files with 2 additions and 1 deletions

View File

@ -46,10 +46,11 @@ public class Mojo3475
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 );
}
}