Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
ant-contrib causing NullPointerException

ant-contrib causing NullPointerException

2003-02-11       - By Yaron Ruckenstein

Hi,

I'm using ant-contrib <Foreach> and <If> tasks.
Once in a while I get null pointer exceptions.

Digging in the archive I found a reference from Geoff Meakin
creator of the <foreach2> task See: http://www.geoff-meakin.com/antattack.html

This is a quote of what we wrote at September 24, 2002:

"Basically you have the trouble because the first time a Task
is performed, it maybeConfigures its environment (see
RuntimeConfigurable and ProjectHelper.configure) which overrides
the values of your XMLattributes with the correct property
substitutions. Now because thats already been done, if you try
and do it a second time with the same Task, the properties dont
get reset."

I tried his modified org.apache.tools.ant.RuntimeConfigurable class
but that did not seem to solve the problem.

Can anyone help me with this problem ? Is there any way to go around this
problem
in the way that <Foreach> and <If> tasks are used ?

Thanks in advance,

Yaron.




©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.