mirror of https://github.com/apache/maven.git
MNG-2687 prevent windows from potentially crapping out with long POM names
Submitted by: Stepan Roh git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@543361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
82146b83f0
commit
f2f86285a3
|
@ -498,6 +498,15 @@ public class DefaultMaven
|
|||
moduleFile = new File( basedir, name + "/" + Maven.POMv4 );
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
moduleFile = moduleFile.getCanonicalFile();
|
||||
}
|
||||
catch ( IOException e )
|
||||
{
|
||||
throw new MavenExecutionException( "Unable to canonicalize file name " + moduleFile, e );
|
||||
}
|
||||
|
||||
moduleFiles.add( moduleFile );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue