Return-Path: X-Original-To: apmail-buildr-commits-archive@www.apache.org Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7B43C124 for ; Thu, 7 Jun 2012 18:42:24 +0000 (UTC) Received: (qmail 7121 invoked by uid 500); 7 Jun 2012 18:42:24 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 6804 invoked by uid 500); 7 Jun 2012 18:42:23 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 6463 invoked by uid 500); 7 Jun 2012 18:42:23 -0000 Delivered-To: apmail-incubator-buildr-commits@incubator.apache.org Received: (qmail 6401 invoked by uid 99); 7 Jun 2012 18:42:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2012 18:42:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 5E97714285F for ; Thu, 7 Jun 2012 18:42:23 +0000 (UTC) Date: Thu, 7 Jun 2012 18:42:23 +0000 (UTC) From: "Hok Shun Poon (JIRA)" To: buildr-commits@incubator.apache.org Message-ID: <723725826.49018.1339094543391.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (BUILDR-644) 'buildr eclipse' or 'buildr idea' tasks downloads artefacts multiple times. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Hok Shun Poon created BUILDR-644: ------------------------------------ Summary: 'buildr eclipse' or 'buildr idea' tasks downloads artefacts multiple times. Key: BUILDR-644 URL: https://issues.apache.org/jira/browse/BUILDR-644 Project: Buildr Issue Type: Bug Components: Dependency management Affects Versions: 1.4.7 Environment: Ruby Version: ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin10.0] Java Version: java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-10M3635) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode) Reporter: Hok Shun Poon Priority: Minor I would like to use the Buildr auto-extract + cache into local repository functionality with a rather funny setup. I'm using a library called libgdx, Android / HTML5 game library (http://libgdx.googlecode.com/files/libgdx-0.9.4.zip). This library is not on Maven Central, but is distributed as a zip containing 9 .jars on the top level of the zip hierarchy. A selection of these JARs are required to build my project successfully. Thus, I ensure that I declare the JARs as constants and tell Buildr that they can be found in the libgdx-0.9.4.zip URL: ``` LIBGDX = "com.badlogic.gdx:gdx:jar:0.9.4" LIBGDX_OPENAL = "com.badlogic.gdx:gdx-openal:jar:0.9.4" ... (7 more) download artifact(LIBGDX) => "http://libgdx.googlecode.com/files/libgdx-0.9.4.zip" download artifact(LIBGDX_OPENAL) => "http://libgdx.googlecode.com/files/libgdx-0.9.4.zip" ... (7 more) ``` Project declarations are as standard. For the sakes of illustration, try: ``` ... compile.with LIBGDX, LIBGDX_OPENAL ... ``` `buildr compile` succeeds in a short time, downloading the zip if it wasn't found, extracting, and publishing the named JARs into the local repository. The next time this is invoked, the local repository is inspected and are found, so no zip download is initiated. This is perfect behaviour. `buildr eclipse` and `buildr idea` however seem to totally ignore the local repository and just goes to download the listed artefacts in the sequence specified. This is disastrous for the build especially when all of the 'download artefact' directives point to the exact same 26MB zip! Please ensure commands that trigger a zip download inspects the local repository first! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira