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:
Jason van Zyl 2007-06-01 02:29:24 +00:00
parent 82146b83f0
commit f2f86285a3
1 changed files with 9 additions and 0 deletions

View File

@ -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 );
}