Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 64840 invoked from network); 4 May 2008 02:56:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2008 02:56:02 -0000 Received: (qmail 4738 invoked by uid 500); 4 May 2008 02:56:03 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 4703 invoked by uid 500); 4 May 2008 02:56:03 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 4692 invoked by uid 99); 4 May 2008 02:56:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2008 19:56:03 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2008 02:55:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB458234C116 for ; Sat, 3 May 2008 19:51:55 -0700 (PDT) Message-ID: <170311993.1209869515766.JavaMail.jira@brutus> Date: Sat, 3 May 2008 19:51:55 -0700 (PDT) From: "Ivan \"Rambius\" Ivanov (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-814) Filesystem resolver does not work with branches In-Reply-To: <1340496265.1209867176499.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan "Rambius" Ivanov updated IVY-814: -------------------------------------- Affects Version/s: (was: 2.0) > Filesystem resolver does not work with branches > ----------------------------------------------- > > Key: IVY-814 > URL: https://issues.apache.org/jira/browse/IVY-814 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2, 2.0-RC1 > Environment: Found on Mac OS X, but should be reproduced everywhere > Reporter: Ivan "Rambius" Ivanov > Attachments: FileSystemResolver.diff, IVY-814.zip > > > I have the following settings file > {noformat} > > > > > > > > > > > > > > {noformat} > For all project in my organisation I want to use branch br-1. However, after I configure, download the dependencies, build my project and I attempt to publish it, I receive the following output: > {noformat} > :: publishing :: claudia.homeunix.net#hwlib > published hwlib to /Users/rambus/.ivyrepo/claudia.homeunix.net/hwlib/br-1/1.0.part/hwlib.jar > published ivy to /Users/rambus/.ivyrepo/claudia.homeunix.net/hwlib/br-1/1.0.part/ivy.xml > publish commited: moved /Users/rambus/.ivyrepo/claudia.homeunix.net/hwlib/1.0.part > to /Users/rambus/.ivyrepo/claudia.homeunix.net/hwlib/1.0 > {noformat} > I use the latest from trunk updated today. > As it can be seen the artifacts are published to the repository, but when they are committed the branch is skipped from the URL - the directory /Users/rambus/.ivyrepo/claudia.homeunix.net/hwlib/1.0 does not exist at all. > I traced the reason of this behaviour down to FileSystemResolver.initTransaction(ModuleRevisionId module). There it initializes from the artifact pattern defined in the settings file the transaction's temporary directory and the transaction's destination directory, respectively the String variables transactionTempDir and transactionDestDir. The patterns are substituted using IvyPatternHelper.substitute(String pattern, ModuleRevisionId moduleRevision) and the problem lies in this method - it does not use the branch. > I am submitting a patch of FileSystemResolver that uses > IvyPatternHelper.substitute(String pattern, String org, String module, String branch, String revision, String artifact, String type, String ext, String conf, ArtifactOrigin origin, Map extraAttributes) > as this is the only method that uses the branch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.