Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 53884 invoked from network); 20 Jun 2008 14:52:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2008 14:52:39 -0000 Received: (qmail 10777 invoked by uid 500); 20 Jun 2008 14:52:38 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 10743 invoked by uid 500); 20 Jun 2008 14:52:38 -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 10701 invoked by uid 99); 20 Jun 2008 14:52:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2008 07:52:38 -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; Fri, 20 Jun 2008 14:51:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5550A234C14B for ; Fri, 20 Jun 2008 07:51:45 -0700 (PDT) Message-ID: <1167033095.1213973505348.JavaMail.jira@brutus> Date: Fri, 20 Jun 2008 07:51:45 -0700 (PDT) From: "Arthur Branham (JIRA)" To: notifications@ant.apache.org Subject: [jira] Commented: (IVY-844) Add hook for setting RelativeUrlResolver implementation in IvySettings In-Reply-To: <325550157.1213897186358.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-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606785#action_12606785 ] Arthur Branham commented on IVY-844: ------------------------------------ The custom attribute is in the info element and has a namespace defined. I am lisenting for IvyEvents in an AbstractTrigger implementation. The attribute map I get from the event does not have expanded properties in the attribute values. I had to invoke project.replaceProperties on the value for the substitution to take place. > Add hook for setting RelativeUrlResolver implementation in IvySettings > ---------------------------------------------------------------------- > > Key: IVY-844 > URL: https://issues.apache.org/jira/browse/IVY-844 > Project: Ivy > Issue Type: Improvement > Components: Core > Affects Versions: 2.0.0-beta-2 > Reporter: Arthur Branham > Fix For: 2.0-RC1 > > > IvySettings.getRelativeUrlResolver always returns a new NormalRelativeUrlResolver. I would like to see a hook made available to set a custom implemenatation of the url resolver, whether it be setting a thread safe reusable instance or a factory to create a new instance for each use. > My interest in this comes from the fact that ant properties are not expanded in dependency module descriptors. I have module descriptors which import their configurations from a common location. The path of that location will be OS specific based on where Ivy is running. I would therefor need a custom relative url resolver which expands properties before constructing a URL object as done in the NormalRelativeUrlResolver. > The following is possible right now, but would not work if running from windows. > > > > An ideal fix for the problem would be: > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.