Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 67309 invoked from network); 28 Aug 2008 15:25:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 15:25:10 -0000 Received: (qmail 44168 invoked by uid 500); 28 Aug 2008 15:25:03 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 44155 invoked by uid 500); 28 Aug 2008 15:25: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 44143 invoked by uid 99); 28 Aug 2008 15:25:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 08:25: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; Thu, 28 Aug 2008 15:24:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A054E234C1C3 for ; Thu, 28 Aug 2008 08:24:44 -0700 (PDT) Message-ID: <1110276001.1219937084655.JavaMail.jira@brutus> Date: Thu, 28 Aug 2008 08:24:44 -0700 (PDT) From: "Matt Benson (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-232) Incorrect directory path resolve when running from a different directory 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-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Benson updated IVY-232: ---------------------------- Attachment: ivy-232-patch.txt Try this.... it's so minimal it may not be enough, but it should be the right approach anyway. > Incorrect directory path resolve when running from a different directory > ------------------------------------------------------------------------ > > Key: IVY-232 > URL: https://issues.apache.org/jira/browse/IVY-232 > Project: Ivy > Issue Type: Bug > Components: Ant > Affects Versions: 1.3-RC2 > Environment: Windows 2000 (probably Unix also. Didn't check that) > Reporter: easyproglife > Assignee: Gilles Scokart > Fix For: 2.0-RC1 > > Attachments: ivy-232-patch.txt > > > Suppose you have two projects in two directories: > /projA > /projB > Each one of them have its own build.xml. > When you run Ant on /projA/build.xml from /projA evrything is ok. > When you run from "/projB" "ant -f ..\projA\build.xml" relative pathes are based on "projB" by Ivy, whereas the correct way (as Ant and Maven works) is to use "projA" as the base directory (assuming "/projA/build.xml" has "basedir" attribute: ".") > In other words, Ivy should take the base directory as specified in the "build.xml" file in "project" tag in "basedir" attribute, and calculate it based on the location of the build.xml file; not based on the "current" directory where Ant was invoced from. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.