NPE thrown from ProjectHelper2.parse() when parsing from URL

2011-09-28 Thread Steele, Richard
Running Ant 1.8.2 on Windows XP, I'm writing a task that returns a string resource collection of target names in a project. Well, attempting to write one. I'm running into problems when the build file I'm parsing is from a URL instead of a File. The main method that I have looks like this:

Re: NPE thrown from ProjectHelper2.parse() when parsing from URL

2011-09-28 Thread Stefan Bodewig
Hi Rich On 2011-09-28, Steele, Richard wrote: > The problem appears to be that build files will have a parent build file, > but in this case that's null. > Setting the basedir attribute in the build file does fix the problem, and I > can use it as a workaround for now. But since I can't always

Re: NPE thrown from ProjectHelper2.parse() when parsing from URL

2011-09-28 Thread Steele, Richard
On Wed, Sep 28, 2011 at 11:48 AM, Stefan Bodewig wrote: > I'm pretty sure I recall this being discussed on the dev list, so it is > something the dev community is aware of. ProjectHelper2 still mostly > deals with files only, URL support is largely there for antlibs and > import/include. > That