mirror of https://github.com/apache/maven.git
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:
parent
210e018f69
commit
95e304ba43
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue