mirror of https://github.com/apache/maven.git
[MNG-6071] Normalize relative paths for working directory
This commit is contained in:
parent
96e11e1c84
commit
cdb2cd0df3
|
@ -20,6 +20,7 @@ package org.apache.maven.cli;
|
|||
*/
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
/**
|
||||
* Resolve relative file path against the given base directory
|
||||
|
@ -43,7 +44,7 @@ public class ResolveFile
|
|||
}
|
||||
else
|
||||
{
|
||||
return new File( baseDirectory, file.getPath() ).getAbsoluteFile();
|
||||
return Paths.get( baseDirectory, file.getPath() ).normalize().toFile();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue