------- Additional Comments From [hidden email] 2005-06-08 04:37 -------
I worried about the same thing when I implemented SubBuildListener. I actually
figured it would bomb out with a NullPointerException. However, it didn't. You
can prove it to yourself by applying my patch and running my testcase with
ant use-ant use-ant-again
ant use-ant test-vfs-2
The first one uses <ant> to call two targets to download two files and then uses
<ant> again to call one target and download another file. So, you have two sub
builds, each of which will trigger the SubBuildListener. The second one, again,
uses <ant> to all two targets to download two files and then comes back out to a
normal target in the main project and downloads another file (make sure to do
"ant clean" between these two tests).
If you can get it to fail, then I'll believe that there is a problem. Until
then, I remain pretty much 100% certain that the SubBuildListener solution is
the proper one for Ant-1.6.2+.