Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 7155 invoked from network); 28 Jan 2007 22:30:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2007 22:30:44 -0000 Received: (qmail 1374 invoked by uid 500); 28 Jan 2007 22:30:50 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 1359 invoked by uid 500); 28 Jan 2007 22:30:50 -0000 Mailing-List: contact ivy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@incubator.apache.org Delivered-To: mailing list ivy-user@incubator.apache.org Received: (qmail 1350 invoked by uid 99); 28 Jan 2007 22:30:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jan 2007 14:30:50 -0800 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Stephen.Davies@ipaustralia.gov.au designates 152.91.1.19 as permitted sender) Received: from [152.91.1.19] (HELO onenetom19.sge.net) (152.91.1.19) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 28 Jan 2007 14:30:41 -0800 Received: from onenetvs13.sge.net (onenetvs-om [152.91.1.17]) by onenetom19.sge.net (Postfix) with ESMTP id 2E852AAF9 for ; Mon, 29 Jan 2007 09:30:17 +1100 (EST) Received: from onenetvs13.sge.net (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id F26AD39EA8 for ; Mon, 29 Jan 2007 09:30:16 +1100 (EST) Received: from guinness.lyn.gwy (unknown [152.91.9.242]) by onenetvs13.sge.net (Postfix) with ESMTP id D528039E60 for ; Mon, 29 Jan 2007 09:30:16 +1100 (EST) Received: from vmail.aipo.gov.au (mail-in.ipa.lyn.gwy [192.168.254.253]) by guinness.lyn.gwy with ESMTP id l0SMUBT7017072 for ; Mon, 29 Jan 2007 09:30:11 +1100 (EST) Received: from noteshub01.aipo.gov.au (noteshub01.aipo.gov.au [10.0.100.21]) by vmail.aipo.gov.au (8.13.3/8.13.3) with ESMTP id l0SMUBC2084776 for ; Mon, 29 Jan 2007 09:30:11 +1100 (EST) (envelope-from Stephen.Davies@ipaustralia.gov.au) In-Reply-To: To: ivy-user@incubator.apache.org Subject: Re: Problem extending ivy tasks due to classloader usage. MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006 Message-ID: From: Stephen.Davies@ipaustralia.gov.au Date: Mon, 29 Jan 2007 09:30:12 +1100 X-MIMETrack: Serialize by Router on NOTESHUB01/SERVERS/IPAustralia(Release 7.0.1|January 17, 2006) at 29/01/2007 09:30:11 AM, Serialize complete at 29/01/2007 09:30:11 AM Content-Type: multipart/mixed; boundary="----------=_1170023411-82054-135" X-Scanned-By: MIMEDefang 2.51 on 10.0.100.191 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ------------=_1170023411-82054-135 In-Reply-To: To: ivy-user@incubator.apache.org Subject: Re: Problem extending ivy tasks due to classloader usage. MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006 Message-ID: From: Stephen.Davies@ipaustralia.gov.au Date: Mon, 29 Jan 2007 09:30:12 +1100 X-MIMETrack: Serialize by Router on NOTESHUB01/SERVERS/IPAustralia(Release 7.0.1|January 17, 2006) at 29/01/2007 09:30:11 AM, Serialize complete at 29/01/2007 09:30:11 AM Content-Type: multipart/alternative; boundary="=_alternative 007B9DABCA257271_=" This is a multipart message in MIME format. --=_alternative 007B9DABCA257271_= Content-Type: text/plain; charset="US-ASCII" Content-Disposition: inline Hi Eran, if you are working with Ant 1.6.1 (or higher) have you considered using the Ant plug-in mechanism? e.g. Regards, Stephen "Eran Bartenstein" 29/01/2007 09:20 AM Please respond to ivy-user@incubator.apache.org To ivy-user@incubator.apache.org cc Subject Problem extending ivy tasks due to classloader usage. Hi, I have written my own task. My task extends the cachepath task. However, it seems that I can not find a way to use it. The problem is that Ivy tasks are loaded into ant classloader prior to my taskdef decleration. The reason it is done that way, is since I want to keep the ivy bundle intact rather than repack it. Also I do not want to pack all ivy jars with my project. Thus, when trying to use my task (which requires ivy in the classapth) - if I specify ivy jar in the taskdef classpath I get a classcast exeption (due to different classloaders). When ommiting it - ivy jar is obviously missing in my classpath. Is there a way to hang one classloader under the ivy one ? Is there another way to extend ivy tasks from my code ? BTW - the task enables cachepath filtering for dependencies, dependending on a set of specified extra attrbiutes. Thanks, Eran B. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --=_alternative 007B9DABCA257271_= Content-Type: text/html; charset="US-ASCII" Content-Disposition: inline
Hi Eran,
if you are working with Ant 1.6.1 (or higher) have you considered using the Ant plug-in mechanism?

e.g. <project xmlns:ivy="antlib:fr.jayasoft.ivy.ant" xmlns:yourLib="antlib:..." >

Regards,
Stephen



"Eran Bartenstein" <ebarten1401@hotmail.com>

29/01/2007 09:20 AM
Please respond to
ivy-user@incubator.apache.org

To
ivy-user@incubator.apache.org
cc
Subject
Problem extending ivy tasks due to classloader usage.





Hi,

I have written my own task. My task extends the cachepath task.
However, it seems that I can not find a way to use it.
The problem is that Ivy tasks are loaded into ant classloader prior to my
taskdef decleration.
The reason it is done that way, is since I want to keep the ivy bundle
intact rather than repack it.
Also I do not want to pack all ivy jars with my project.

Thus, when trying to use my task (which requires ivy in the classapth) - if
I specify ivy jar in the taskdef classpath I get a classcast exeption (due
to different classloaders). When ommiting it - ivy jar is obviously missing
in my classpath.

Is there a way to hang one classloader under the ivy one ?
Is there another way to extend ivy tasks from my code ?

BTW - the task enables cachepath filtering for dependencies, dependending on
a set of specified extra attrbiutes.

Thanks,
          Eran B.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--=_alternative 007B9DABCA257271_=-- ------------=_1170023411-82054-135 Content-Type: text/plain; name="disclaimer.txt" Content-Disposition: inline; filename="disclaimer.txt" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) -- This message contains privileged and confidential information only for use by the intended recipient. If you are not the intended recipient of this message, you must not disseminate, copy or use it in any manner. If you have received this message in error, please advise the sender by reply e-mail. Please ensure all e-mail attachments are scanned for viruses prior to opening or using. ------------=_1170023411-82054-135--