continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r447263 - /maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
Date Mon, 18 Sep 2006 05:51:46 GMT
Author: brett
Date: Sun Sep 17 22:51:45 2006
New Revision: 447263

URL: http://svn.apache.org/viewvc?view=rev&rev=447263
Log:
fix build issue when basedir contains '..'

Modified:
    maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java

Modified: maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java?view=diff&rev=447263&r1=447262&r2=447263
==============================================================================
--- maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
(original)
+++ maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
Sun Sep 17 22:51:45 2006
@@ -93,6 +93,8 @@
         File continuumTmpDir = new File( TMP_DIR, "continuum" );
 
         File uploadDirectory = new File( continuumTmpDir, baseDirectory );
+        // resolve any '..' as it will cause issues
+        uploadDirectory = uploadDirectory.getCanonicalFile();
 
         uploadDirectory.mkdirs();
 



Mime
View raw message