| How to register a customn BuildListener | How to register a customn BuildListener 2005-06-27 - By Jeffrey E Care
Maybe override the "setProject" method on your DataType extensions and handle the registration there?
-- Jeffrey E. Care (carej@(protected)) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis
Tim Kettler <tim.kettler@(protected)> 06/27/2005 12:14 PM Please respond to "Ant Users List"
To user@(protected) cc
Subject How to register a customn BuildListener
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)
|
|
 |