ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Maven Ant Task problem when used with Ant 1.7.0
Date Wed, 10 Jan 2007 19:51:44 GMT

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

> --- Peter Reilly <peter.kitt.reilly@gmail.com>
> 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 their
> artifacts. 
> PITA, but not the end of the world.  The simplified
> pathconvert code triggers the problem.  My simple
> testcase is:
> 
> <project>
>   <fileset id="fs" dir="${basedir}" />
> 
>   <script language="beanshell">
>     fs.setProject(null);
>   </script>
> 
>   <pathconvert refid="fs" />
> </project>
> 
> which triggers the NPE in AbstractFileSet.  I am
> testing a fix now.
> 

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.

-Matt

> -Matt
> 
> > Peter
> [SNIP]
> 
> 
>  
>
____________________________________________________________________________________
> Any questions? Get answers on any topic at
> www.Answers.yahoo.com.  Try it now.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message