Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 78490 invoked from network); 20 Aug 2009 18:55:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Aug 2009 18:55:35 -0000 Received: (qmail 19708 invoked by uid 500); 20 Aug 2009 18:55:53 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 19670 invoked by uid 500); 20 Aug 2009 18:55:53 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 19659 invoked by uid 99); 20 Aug 2009 18:55:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 18:55:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of garima.bathla@gmail.com designates 209.85.212.198 as permitted sender) Received: from [209.85.212.198] (HELO mail-vw0-f198.google.com) (209.85.212.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 18:55:45 +0000 Received: by vws36 with SMTP id 36so139939vws.10 for ; Thu, 20 Aug 2009 11:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=DU8saB7yp1QCluAAExDZTcDaady63PJcaRvApXQ/Wqg=; b=U5GG3pX/UmBexw2wqo8gO5iH8BCnXJ2Be60nQGbngYqndBIY4H9CG5MAASBiM0LYMY e2cQupS+IKC7sE68mjG5E/WCeOslS5sbnOvZXre48+R8bUUXKKTxUdZ+IdbPLZp32gEO +HalOjNC42hME4m8Eks+MN2+V55BDGiV/0i0Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qVxz8RgdZH0wAuciZ79JlVgaAlyHeE7kRYS4Xpy1yeQZ7YCbpcp5fZpFoydMdrwAPv qbb0xWW8U98Eu9zuxdLJU9FgdV8iP7FLB6dKfA4begYaL1gqUSU+TPTEJirb1LWx8Z4V qJDqt9M5bPnjzd/+Xjlp6Qi/0AfnENEN7C6HM= MIME-Version: 1.0 Received: by 10.220.103.85 with SMTP id j21mr258436vco.42.1250794524641; Thu, 20 Aug 2009 11:55:24 -0700 (PDT) Date: Thu, 20 Aug 2009 11:55:24 -0700 Message-ID: <1fb30820908201155g2d8dcbf8v257e5944b50223ca@mail.gmail.com> Subject: unable to get ivy object from IvyAntSettings From: Garima Bathla To: ivy-user@ant.apache.org Content-Type: multipart/alternative; boundary=0016e64f6a5a5409ae0471974b89 X-Virus-Checked: Checked by ClamAV on apache.org --0016e64f6a5a5409ae0471974b89 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I am currently working on invoking Ant+Ivy from a standalone java program, I am doing so o automate ivy.xml creation: So My Java Class looks like : Project p = getProjectFromUser(); // My Own Custom method IvyAntSettings ivyAntSettings = ((IvyAntSettings) p.getReference("ivy.instance")); Question: How can I get handle of ivy instance (Ivy.java) from IvyAntSettings object. Problem : in Apache Ivy 2.0.0 there was a method getConfiguredIvyInstance() in IvyAntSettings class and this method signature has been changed to getConfiguredIvyInstance(Task task). Since I am running it from a plain java class I d not have any Task object to pass on. I am not saying the signature change is wrong, but at this point I am unable to get Ivy object from IvyAntSettings. Is there any other way I can get Ivy object from ivy.instance reference? Regards, Garima. --0016e64f6a5a5409ae0471974b89--