ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Ivy svn breaks ant-contrib svn
Date Tue, 15 Jul 2008 07:44:03 GMT
On Tue, Jul 15, 2008 at 9:23 AM, Stefan Bodewig <bodewig@apache.org> wrote:

> On Tue, 15 Jul 2008, Xavier Hanin <xavier.hanin@gmail.com> wrote:
>
> > On Tue, Jul 15, 2008 at 8:53 AM, Stefan Bodewig <bodewig@apache.org>
> wrote:
> >
> > > On Mon, 14 Jul 2008, Stefan Bodewig <bodewig@apache.org> wrote:
> > >
> > > On Mon, 14 Jul 2008, Maarten Coene <maarten_coene@yahoo.com> wrote:
> > >
> > > >> I changed that recently. IvyAntSettings is now a DataType again...
> > > >> They should use the IvyConfigure task instead.
> > > >
> > > > OK, thanks.  Looked straight forward so I just committed the
> > > > necessary patch.
> > >
> > > Ant-contrib also invokes setId() on the task, which works fine with
> > > Ivy 2.0.0beta2 but fails with trunk.
> > >
> > > Could you please re-add the setid method?
> >
> > setId is now setSettingsId on IvyConfigure, which is more in conformance
> > with Ant, since we are not setting the id of the task, but of the
> underneath
> > datatype.
>
> OK, what can ant-contrib do if it wants to compile against Ivy
> 2.0.0beta2 and trunk with the same codebase?

This is not straightforward, since we broke the API. I guess the solution is
to use java reflection API to detect if there is a setId or a setSettingsId
method, and call it via reflection.

Xavier



>
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message