maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r543361 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
Date Fri, 01 Jun 2007 02:29:25 GMT
Author: jvanzyl
Date: Thu May 31 19:29:24 2007
New Revision: 543361

URL: http://svn.apache.org/viewvc?view=rev&rev=543361
Log:
MNG-2687 prevent windows from potentially crapping out with long POM names
Submitted by: Stepan Roh

Modified:
    maven/components/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java?view=diff&rev=543361&r1=543360&r2=543361
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java (original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java Thu
May 31 19:29:24 2007
@@ -498,6 +498,15 @@
                         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 );
                 }
 



Mime
View raw message