mirror of
https://github.com/apache/maven.git
synced 2025-02-08 19:15:12 +00:00
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 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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user