Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 2272 invoked from network); 23 Jan 2010 23:03:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jan 2010 23:03:41 -0000 Received: (qmail 83007 invoked by uid 500); 23 Jan 2010 23:03:41 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 82933 invoked by uid 500); 23 Jan 2010 23:03:40 -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 82924 invoked by uid 99); 23 Jan 2010 23:03:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2010 23:03:40 +0000 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; Sat, 23 Jan 2010 23:03:38 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF054234C48D for ; Sat, 23 Jan 2010 15:03:17 -0800 (PST) Message-ID: <1707828623.6821264287797766.JavaMail.jira@brutus.apache.org> Date: Sat, 23 Jan 2010 23:03:17 +0000 (UTC) From: "Jason Trump (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-1163) add ability to programmatically change default resolver In-Reply-To: <152292718.6661264287077796.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-1163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Trump updated IVY-1163: ----------------------------- Attachment: ivy-1163-r902503.patch patch with failing test case and a proposed fix. > add ability to programmatically change default resolver > ------------------------------------------------------- > > Key: IVY-1163 > URL: https://issues.apache.org/jira/browse/IVY-1163 > Project: Ivy > Issue Type: Improvement > Components: Core > Affects Versions: 2.1.0 > Reporter: Jason Trump > Priority: Minor > Attachments: ivy-1163-r902503.patch > > > I would like the ability to change the default resolver programmatically. For example, from an Ant task. The API exists for this (IvySettings.setDefaultResolver), but it does not work reliably. The fix looks pretty easy. > When you call IvySettings.setDefaultResolver, it changes the value of "defaultResolverName", of type String. However, it doesn't change the cache variable "defaultResolver". So if you've called IvySettings.getDefaultResolver once, it will always return the original value, even if you later try to change it with setDefaultResolver. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.