Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 92950 invoked from network); 15 Feb 2007 03:45:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 03:45:26 -0000 Received: (qmail 12842 invoked by uid 500); 15 Feb 2007 03:45:33 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 12806 invoked by uid 500); 15 Feb 2007 03:45:33 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 12792 invoked by uid 99); 15 Feb 2007 03:45:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 19:45:33 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 19:45:25 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 26F331A981A; Wed, 14 Feb 2007 19:45:05 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: scm@geronimo.apache.org From: jdillon@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070215034505.26F331A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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) {