You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Paul J. Morris" <pa...@solnetsolutions.co.nz> on 2007/07/24 06:40:04 UTC

Extending org.apache.tools.ant.types.Path in Ant 1.7

Hi,

I've a custom Path type that worked under ANT 1.6.5, but not under 1.7.

The method  "public String[] list()" is not being called.  There is however
a get iterator type method from the ResourceCollection contract.  Is this
supposed to be over-ridden in 1.7?  However it is marked as final (public
final synchronized Iterator iterator() ) , so that isn't possible.


Or is there something I'm missing?


thanks
Paul

-- 
View this message in context: http://www.nabble.com/Extending-org.apache.tools.ant.types.Path-in-Ant-1.7-tf4133831.html#a11756872
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: Extending org.apache.tools.ant.types.Path in Ant 1.7

Posted by "Paul J. Morris" <pa...@solnetsolutions.co.nz>.
Thanks  Matt,

That change fixed the problem - I patched our 1.7 version of Ant with the
new 1.7.1 Path version.

regards,
Paul



Matt Benson wrote:
> 
> Paul, I have added a bugzilla report for this:
> 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=42967
> 
> I have checked a change into Ant's subversion trunk. 
> Any chance you could test this version and see if your
> Path subclass starts working again?
> 
> Thanks,
> Matt
> 
> --- Matt Benson <gu...@yahoo.com> wrote:
> 
>> 
>> --- "Paul J. Morris"
>> <pa...@solnetsolutions.co.nz> wrote:
>> 
>> > 
>> > Hi,
>> > 
>> > I've a custom Path type that worked under ANT
>> 1.6.5,
>> > but not under 1.7.
>> > 
>> > The method  "public String[] list()" is not being
>> > called.  There is however
>> > a get iterator type method from the
>> > ResourceCollection contract.  Is this
>> > supposed to be over-ridden in 1.7?  However it is
>> > marked as final (public
>> > final synchronized Iterator iterator() ) , so that
>> > isn't possible.
>> > 
>> > 
>> > Or is there something I'm missing?
>> > 
>> 
>> No--I'd call this a regression (introduced by yours
>> truly).  If possible, could you open a bugzilla
>> report
>> for this, and maybe we can get it fixed in time for
>> Ant 1.7.1 .
>> 
>> -Matt
>> 
>> > 
>> > thanks
>> > Paul
>> > 
>> > -- 
>> > View this message in context:
>> >
>>
> http://www.nabble.com/Extending-org.apache.tools.ant.types.Path-in-Ant-1.7-tf4133831.html#a11756872
>> > Sent from the Ant - Users mailing list archive at
>> > Nabble.com.
>> > 
>> > 
>> >
>>
> 
>         
> 
> 

-- 
View this message in context: http://www.nabble.com/Extending-org.apache.tools.ant.types.Path-in-Ant-1.7-tf4133831.html#a11772413
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: Extending org.apache.tools.ant.types.Path in Ant 1.7

Posted by Matt Benson <gu...@yahoo.com>.
Paul, I have added a bugzilla report for this:

https://issues.apache.org/bugzilla/show_bug.cgi?id=42967

I have checked a change into Ant's subversion trunk. 
Any chance you could test this version and see if your
Path subclass starts working again?

Thanks,
Matt

--- Matt Benson <gu...@yahoo.com> wrote:

> 
> --- "Paul J. Morris"
> <pa...@solnetsolutions.co.nz> wrote:
> 
> > 
> > Hi,
> > 
> > I've a custom Path type that worked under ANT
> 1.6.5,
> > but not under 1.7.
> > 
> > The method  "public String[] list()" is not being
> > called.  There is however
> > a get iterator type method from the
> > ResourceCollection contract.  Is this
> > supposed to be over-ridden in 1.7?  However it is
> > marked as final (public
> > final synchronized Iterator iterator() ) , so that
> > isn't possible.
> > 
> > 
> > Or is there something I'm missing?
> > 
> 
> No--I'd call this a regression (introduced by yours
> truly).  If possible, could you open a bugzilla
> report
> for this, and maybe we can get it fixed in time for
> Ant 1.7.1 .
> 
> -Matt
> 
> > 
> > thanks
> > Paul
> > 
> > -- 
> > View this message in context:
> >
>
http://www.nabble.com/Extending-org.apache.tools.ant.types.Path-in-Ant-1.7-tf4133831.html#a11756872
> > Sent from the Ant - Users mailing list archive at
> > Nabble.com.
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> > 
> > 
> 
> 
> 
>        
>
____________________________________________________________________________________
> Building a website is a piece of cake. Yahoo! Small
> Business gives you all the tools to get online.
> http://smallbusiness.yahoo.com/webhosting 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

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


Re: Extending org.apache.tools.ant.types.Path in Ant 1.7

Posted by Matt Benson <gu...@yahoo.com>.
--- "Paul J. Morris"
<pa...@solnetsolutions.co.nz> wrote:

> 
> Hi,
> 
> I've a custom Path type that worked under ANT 1.6.5,
> but not under 1.7.
> 
> The method  "public String[] list()" is not being
> called.  There is however
> a get iterator type method from the
> ResourceCollection contract.  Is this
> supposed to be over-ridden in 1.7?  However it is
> marked as final (public
> final synchronized Iterator iterator() ) , so that
> isn't possible.
> 
> 
> Or is there something I'm missing?
> 

No--I'd call this a regression (introduced by yours
truly).  If possible, could you open a bugzilla report
for this, and maybe we can get it fixed in time for
Ant 1.7.1 .

-Matt

> 
> thanks
> Paul
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Extending-org.apache.tools.ant.types.Path-in-Ant-1.7-tf4133831.html#a11756872
> Sent from the Ant - Users mailing list archive at
> Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting 

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