Java Mailing List Archive

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

Apache Ant Archive

» Ant Users List
» Ant Developers List
How to register a customn BuildListener

How to register a customn BuildListener

2005-06-27       - By Tim Kettler
Reply:     1     2  

Hi,

I'm writing a few extensions to Ant to integrate it in our locale build
environment. I have written a customn DataType and on the first
instantiation of the type I want to register a customn BuildListener.
Therefore I have to call the 'addBuildListener()' method of the Project
class. But when trying to obtain a reference to that class by calling
'this.getProject()' in the constructor of my type a null reference is
returned.

Is this a bug? If not, how can I access the Project class? Is there an
other way to register a BuildListener at that stage?

Thanks in advance
Tim Kettler

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


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