ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaron Ruckenstein" <>
Subject ant-contrib causing NullPointerException
Date Tue, 11 Feb 2003 07:51:30 GMT

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:

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 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,


View raw message