Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3965C745 for ; Mon, 24 Jun 2013 15:49:58 +0000 (UTC) Received: (qmail 53362 invoked by uid 500); 24 Jun 2013 15:49:57 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 52858 invoked by uid 500); 24 Jun 2013 15:49:51 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 52841 invoked by uid 99); 24 Jun 2013 15:49:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 15:49:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of charles@dyfis.net designates 209.85.223.172 as permitted sender) Received: from [209.85.223.172] (HELO mail-ie0-f172.google.com) (209.85.223.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 15:49:44 +0000 Received: by mail-ie0-f172.google.com with SMTP id 16so25623102iea.3 for ; Mon, 24 Jun 2013 08:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dyfis.net; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=lip/uE6GA/FeWUWjSSVpbvZSLV3BD/wE3Oormg5u/jg=; b=kQFOQgKe3gtko5vnzhUvXWee8RjpQovxiB12oWy7efNoBtAxOk47zoP4xOUUNd8mWF MoLB6huErjcaFUzYrSwF9SZSQRbLHQB+vnEKx2g4Yp06BGgwaUUyrd/k2732wfWocRgY stYIYoxgj38qHPicWsEYhD3bu5jqT/QVrr0Hg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=lip/uE6GA/FeWUWjSSVpbvZSLV3BD/wE3Oormg5u/jg=; b=LMjkfHDtvH87lUM1bCsyfEq+fAtw84q1r2QO1J0RMpTLRTUL5y0Mym5nB1u/jWsiBL x7cUPNL4bHaCT8LbYAYluGLiIiwAWMQZnuWQ8rhryIG/S33zsSILk/OQlEmlq4fCmLfP ZBh47gdbmQQcOqzRPEO24iJAlRF8STWR25VEgM0dBSEYM0eghSBhNHDBoo3vXEWqigTR YI3KtBj1BShykbLiDqMYlO2oHXnvNj9Ji6Kak8Tt28Z3ik870FztxknNKjRmNN7kLc5A D50peUBHDlWP9+MB2ZF0hV0jHqCVPknRE7ynDgT8Ba0JUnv1/DLbpW8rvMkCu8waWISG jrGA== MIME-Version: 1.0 X-Received: by 10.50.3.70 with SMTP id a6mr5999017iga.6.1372088963038; Mon, 24 Jun 2013 08:49:23 -0700 (PDT) Received: by 10.64.33.173 with HTTP; Mon, 24 Jun 2013 08:49:22 -0700 (PDT) Date: Mon, 24 Jun 2013 10:49:22 -0500 Message-ID: Subject: checkDescriptorConsistency preventing revision mappings in namespaces From: Charles Duffy To: dev@ant.apache.org Content-Type: multipart/alternative; boundary=089e01229f743e1b9204dfe85be2 X-Gm-Message-State: ALoCoQndqK2ko4pCOC6XZ10oDMW3peN2W4lGZ4CA4/VjF/9SM65xkv+HhdPwnEGBsKo53HKjMpNr X-Virus-Checked: Checked by ClamAV on apache.org --089e01229f743e1b9204dfe85be2 Content-Type: text/plain; charset=UTF-8 If you're seeing this for the second time, please pardon the repost -- the first instance was posted through Nabble, and appears not to to have been accepted by the real list. --- For organisations and modules, checkDescriptorConsistency compares mrid and md -- both of which use the local values. For revisions, checkDescriptorConsistency generates expectedMrid using ivyRev.getRevision(). Since ivyRef uses the remote (non-system) values, this check fails when the mapping has any effect. In practice, this appears to mean that checkDescriptorConsistency is enforcing that revision mappings be either (1) unused, or (2) broken; a near-standalone reproducer (with the only external dependency being the ibiblio repository) is available, with an example of canned output, at https://gist.github.com/charles-dyfis-net/5783838 I have a patch attached to https://issues.apache.org/jira/browse/IVY-1423 which uses mrid.getRevision() rather than ivyRef.getRevision(); with it applied, I'm successfully able to use namespace revision mappings. That said, I'd be more comfortable with review from someone familiar with the surrounding logic and able to speak for why this was previously implemented as it was. Many thanks, -- Charles --089e01229f743e1b9204dfe85be2--