Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 62486 invoked from network); 2 Sep 2008 12:10:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Sep 2008 12:10:35 -0000 Received: (qmail 63834 invoked by uid 500); 2 Sep 2008 12:10:33 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 63810 invoked by uid 500); 2 Sep 2008 12:10:33 -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 63801 invoked by uid 99); 2 Sep 2008 12:10:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 05:10:33 -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; Tue, 02 Sep 2008 12:09:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5E0CA234C1C3 for ; Tue, 2 Sep 2008 05:09:44 -0700 (PDT) Message-ID: <247340664.1220357384370.JavaMail.jira@brutus> Date: Tue, 2 Sep 2008 05:09:44 -0700 (PDT) From: "Xavier Hanin (JIRA)" To: notifications@ant.apache.org Subject: [jira] Resolved: (IVY-387) Better and more homogeneous relative paths handling 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-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin resolved IVY-387. ------------------------------ Resolution: Fixed I've implemented what Gilles suggested: now relative paths in settings files are allowed for properties and settings inclusion only. I had to update a lot of unit tests, which were using relative paths. Now it should work well, and behave more consistently. I've also documented relative paths handling on the main concept page. > Better and more homogeneous relative paths handling > --------------------------------------------------- > > Key: IVY-387 > URL: https://issues.apache.org/jira/browse/IVY-387 > Project: Ivy > Issue Type: Improvement > Affects Versions: 1.4.1 > Reporter: Gilles Scokart > Assignee: Xavier Hanin > Fix For: 2.0-RC1 > > > There are a few of issues in Jira concerning absolute and relative path. Currently all the path are resolved relatively to the execution. > The different issues are : > - includes in the ivyconf files (IVY-372) > - properties in the ivyconf files (IVY-89) > - include configurations in the ivy files (IVY-347) In all case, the path should be resolved relatively to the including file, and not relatively to the current execution task. > There is also at least an other issue concerning the path resulutiion in ant task parameter (IVY-232). > I think all those problems should be fixed together in order to keep ivy more consistent. However, there is a backward compatibility issue: some projects (for which it is required to launch the build from the base directory) rely on the fact that ivy use path relative to the current execution directory. And if they reference files that are not in the base directory, the change will break their build. > The first project in that case is ivy itself! Try 'ant -f ivy/build.xml test' and you will see plenty of test failing. > Comment from Xavier on the mailing list : > What could be done is have a single setting somewhere saying if relative paths resolution should be done in backward compatible mode, or new mode. The default could even be new mode, if it's clearly documented. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.