geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r507803 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy
Date Thu, 15 Feb 2007 03:45:05 GMT
Author: jdillon
Date: Wed Feb 14 19:45:04 2007
New Revision: 507803

URL: http://svn.apache.org/viewvc?view=rev&rev=507803
Log:
Don't nest dirs when cp, just copy the dang dir

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy?view=diff&rev=507803&r1=507802&r2=507803
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy
Wed Feb 14 19:45:04 2007
@@ -117,13 +117,15 @@
         
         // Make sure we don't clobber anything, start out with no dir
         assert !targetDir.exists()
-        targetDir.mkdirs()
+        
+        // Only make parent, so we don't end up with nested dir
+        targetDir.parentFile.mkdirs()
         
         //
         // NOTE: Use native 'cp' for speed, since some libraries can be large
         //       and Ant's mechanism can take forever (or kill the heap)
         //
-        exec('cp', [ '-r', "$baseDir/", targetDir ]) // Trailing '/' is significant
+        exec('cp', [ '-r', baseDir, targetDir ])
         
         // If we have some perms, then set them
         if (perms) {



Mime
View raw message