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

View File

@ -46,10 +46,11 @@ public void execute()
private void testDirectoryAbsolutePath( String directory, List failed ) private void testDirectoryAbsolutePath( String directory, List failed )
throws MojoExecutionException throws MojoExecutionException
{ {
if ( !directory.equals( new File( directory ).getAbsolutePath() ) ) if ( !new File( directory ).isAbsolute() )
{ {
failed.add( directory ); failed.add( directory );
} }
System.out.println( directory ); System.out.println( directory );
} }
} }