Re: java.lang.Iterable

2005-04-21 Thread Patrick Heck
Just as a curiosity, I remember 1 - 1.5 yrs ago when I was somewhat active on this list, it was a big deal when ant finally decided to drop support for running ant under java 1.1 and allow use of Collections & other 1.2 stuff in the code base. Did you guys move to 1.4 when I wasn't watching (th

Re: java.lang.Iterable

2005-04-21 Thread Steve Loughran
Steve Loughran wrote: Peter Reilly wrote: [EMAIL PROTECTED] wrote: I had a project where a code generator inserts one interface statement - and that what missing. So I created just an empty interface to make the compiler happy. Couldnt we "backport" the Iterable interface? I played a little with

cvs commit: ant/src/main/org/apache/tools/ant AntTypeDefinition.java

2005-04-21 Thread stevel
stevel 2005/04/21 06:33:48 Modified:src/main/org/apache/tools/ant AntTypeDefinition.java Log: javadocs Revision ChangesPath 1.17 +1 -1 ant/src/main/org/apache/tools/ant/AntTypeDefinition.java Index: AntTypeDefinition.java

cvs commit: ant/src/main/org/apache/tools/zip UnrecognizedExtraField.java

2005-04-21 Thread stevel
stevel 2005/04/21 06:33:13 Modified:src/main/org/apache/tools/ant/types AbstractFileSet.java src/main/org/apache/tools/ant/util ConcatFileInputStream.java DOMUtils.java src/main/org/apache/tools/zip UnrecognizedExtraField.java Log:

java.lang.Iterable

2005-04-21 Thread Steve Loughran
Peter Reilly wrote: [EMAIL PROTECTED] wrote: I had a project where a code generator inserts one interface statement - and that what missing. So I created just an empty interface to make the compiler happy. Couldnt we "backport" the Iterable interface? I played a little with these... - build.xml

Re: PropertySet.iterator()

2005-04-21 Thread Peter Reilly
Matt Benson wrote: Any thoughts on the propriety of adding public void iterator() { //return property NAMES } to PropertySet? This would make it easy to use with ant-contrib's task. Not that we have an obligation to do that, but I think it could be cool. It would be nice! Peter -Matt _

cvs commit: ant/src/main/org/apache/tools/ant/taskdefs MacroInstance.java

2005-04-21 Thread peterreilly
peterreilly2005/04/21 04:27:08 Modified:src/main/org/apache/tools/ant/taskdefs MacroInstance.java Log: just change the exception and not make a new exception when hiding the macro Revision ChangesPath 1.35 +2 -1 ant/src/main/org/apache/tools/ant/taskdefs/Macr

AW: AW: PropertySet.iterator()

2005-04-21 Thread Jan . Materne
Compile under 1.4 and you only have a comment. The oata.Iterable defines the same behaviour so external tools could use - reflection for 1.4 compiled code - direct access for 1.5 compiled code Jan > -Ursprüngliche Nachricht- > Von: Peter Reilly [mailto:[EMAIL PROTECTED] > Gesendet am: Do

Re: AW: PropertySet.iterator()

2005-04-21 Thread Peter Reilly
[EMAIL PROTECTED] wrote: I had a project where a code generator inserts one interface statement - and that what missing. So I created just an empty interface to make the compiler happy. Couldnt we "backport" the Iterable interface? I played a little with these... - build.xml - src\oata\Iterable.

Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs MacroDefTest.java

2005-04-21 Thread Peter Reilly
Stefan Bodewig wrote: On Thu, 21 Apr 2005, Peter Reilly <[EMAIL PROTECTED]> wrote: what I need is +} else { +throw ex; +} This will cause the error to be reported from within the macro definition. (i.e. from within the antlib resource). True, s

Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs MacroDefTest.java

2005-04-21 Thread Stefan Bodewig
On Thu, 21 Apr 2005, Peter Reilly <[EMAIL PROTECTED]> wrote: > Stefan Bodewig wrote: > >>On 21 Apr 2005, <[EMAIL PROTECTED]> wrote: >> >> >> >>> add backtrace attribute to >>> >>> >> >>hidemacro with reversed meaning (and a default of false)? >> >> > Mmm, I do not know which is more confusing :-

Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs MacroDefTest.java

2005-04-21 Thread Stefan Bodewig
On Thu, 21 Apr 2005, Peter Reilly <[EMAIL PROTECTED]> wrote: >>what I need is >> >> +} else { >> +throw ex; >> +} >> >> > This will cause the error to be reported from within the macro > definition. (i.e. from within the antlib resource). True, so what I

Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs MacroDefTest.java

2005-04-21 Thread Peter Reilly
Stefan Bodewig wrote: On 21 Apr 2005, <[EMAIL PROTECTED]> wrote: add backtrace attribute to hidemacro with reversed meaning (and a default of false)? Mmm, I do not know which is more confusing :-( perhaps backtraceonerror (again) ? Peter Stefan -

Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs MacroDefTest.java

2005-04-21 Thread Peter Reilly
Stefan Bodewig wrote: On 21 Apr 2005, <[EMAIL PROTECTED]> wrote: add backtrace attribute to On second glance, this is not what I need 8-( + +backtrace + + This controls the error traceback if they is an + error detected when running the macr

Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs MacroDefTest.java

2005-04-21 Thread Stefan Bodewig
On 21 Apr 2005, <[EMAIL PROTECTED]> wrote: > add backtrace attribute to hidemacro with reversed meaning (and a default of false)? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs MacroDefTest.java

2005-04-21 Thread Stefan Bodewig
On 21 Apr 2005, <[EMAIL PROTECTED]> wrote: > add backtrace attribute to On second glance, this is not what I need 8-( > + > +backtrace > + > + This controls the error traceback if they is an > + error detected when running the macro. If this i

cvs commit: ant/docs/manual/CoreTasks macrodef.html

2005-04-21 Thread peterreilly
peterreilly2005/04/21 02:52:05 Modified:docs/manual/CoreTasks macrodef.html Log: typeo Revision ChangesPath 1.26 +1 -1 ant/docs/manual/CoreTasks/macrodef.html Index: macrodef.html === RCS f

cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs MacroDefTest.java

2005-04-21 Thread peterreilly
peterreilly2005/04/21 02:49:55 Modified:.WHATSNEW docs/manual/CoreTasks macrodef.html src/etc/testcases/taskdefs macrodef.xml src/main/org/apache/tools/ant/taskdefs MacroDef.java MacroInstance.java

Re: AW: PropertySet.iterator()

2005-04-21 Thread Steve Loughran
or public class Something #ifdef JAVA15 implements Iterable, Closeable #endif -and we pump all the source through m5 , velocity, whatever. just a thought :) [EMAIL PROTECTED] wrote: Ok - inlined ... Jan build.xml ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-<

RE: PropertySet.iterator()

2005-04-21 Thread Phil Weighill Smith
On this topic, what do people think of the ability to define a filter set from a property set, where each filter has the property's name and the property's value? Phil :n. On Wed, 2005-04-20 at 16:48 -0500, Dominique Devienne wrote: > > From: Matt Benson [mailto:[EMAIL PROTECTED] > > > > Any tho

Re: Resources

2005-04-21 Thread Stefan Bodewig
On Wed, 20 Apr 2005, Matt Benson <[EMAIL PROTECTED]> wrote: > We know that the new ResourceCollections stuff will > add getInputStream() to oata.types.Resource . I think > the subject of OutputStreams has come up as well, and > I am starting to think it makes sense to do this, +1 But we need to

AW: PropertySet.iterator()

2005-04-21 Thread Jan . Materne
Ok - inlined ... Jan build.xml ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-< onJDK15: ${onJDK15} Using Java 5 stuff Hiding Java 5 stuff ---8-<---8-<---8-<---8-<---8-<

AW: PropertySet.iterator()

2005-04-21 Thread Jan . Materne
Title: AW: PropertySet.iterator() I had a project where a code generator inserts one interface statement - and that what missing. So I created just an empty interface to make the compiler happy. Couldnt we "backport" the Iterable interface? I played a little with these... - build.xml - src\o