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:40:27 GMT
--- 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.

-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


Mime
View raw message