Re: Maven Ant Task problem when used with Ant 1.7.0

2007-01-11 Thread Matt Benson
--- Kevin Jackson <[EMAIL PROTECTED]> wrote: > Hi Matt, > > > I have checked in code to fix this. Those > > experiencing the problem might want to test > against a > > build from SVN HEAD to verify the problem is fixed > for > > them. It wouldn't hurt to remind the Maven folks > to > > set the

Re: Maven Ant Task problem when used with Ant 1.7.0

2007-01-10 Thread Kevin Jackson
Hi Matt, I have checked in code to fix this. Those experiencing the problem might want to test against a build from SVN HEAD to verify the problem is fixed for them. It wouldn't hurt to remind the Maven folks to set the Project instance on artifacts they create, either. That was quick! And

Re: Maven Ant Task problem when used with Ant 1.7.0

2007-01-10 Thread Matt Benson
--- Matt Benson <[EMAIL PROTECTED]> wrote: > --- Peter Reilly <[EMAIL PROTECTED]> > wrote: > > > It looks like it is some strange stuff with > > path through the code that just avoids an NPE in > > ant.1.6.5. > [SNIP] > > I am not sure how to fix this in ant. > > > > I've got it. It is indee

Re: Maven Ant Task problem when used with Ant 1.7.0

2007-01-10 Thread Matt Benson
--- Peter Reilly <[EMAIL PROTECTED]> wrote: > It looks like it is some strange stuff with > path through the code that just avoids an NPE in > ant.1.6.5. [SNIP] > I am not sure how to fix this in ant. > I've got it. It is indeed a case of the Maven code not having set Project references on the

Re: Maven Ant Task problem when used with Ant 1.7.0

2007-01-10 Thread Peter Reilly
It looks like it is some strange stuff with path through the code that just avoids an NPE in ant.1.6.5. On ant 1.6.5 with the following file and the maven jar in lib, the first echo works but the second echo fails: Here ${e

Re: Maven Ant Task problem when used with Ant 1.7.0

2007-01-10 Thread Matt Benson
Sorry... to go farther down the stacktrace, I should correct myself: it appears that the Maven guys don't set a project on their fileset when they create it, or something. So it's a bug for them, but possibly a regression for Ant after all, if you want to look at it that way. -Matt --- Matt Ben

Re: Maven Ant Task problem when used with Ant 1.7.0

2007-01-10 Thread Matt Benson
That looks like a bug in the Maven task. The only way for an NPE to be triggered here would seem to indicate the task passed null as the project argument to getDirectoryScanner(). Looking at Ant 1.6.5's code it appears that the same exception would be thrown, however, so I am confused how this pr

Maven Ant Task problem when used with Ant 1.7.0

2007-01-10 Thread Loic Jay
Hi, I have submitted the following problem to the Maven mailing list which redirected me to this Ant mailing list. The problem occurs when I use the maven ant task 2.0.4 with Ant 1.7.0. The fileset created by the task raises a NullPointerException when used in the Ant task. The following

Re: Maven Ant Task problem when used with Ant 1.7.0

2007-01-09 Thread Kevin Jackson
Hi, Are the maven ant task supposed to work with the last Ant 1.7.0 version ? Any idea about what causes this problem ? Ant 1.7 introduced the concept of ResourceCollections, this code would have affected filesets, but I cannot diagnose the problem further without a full st