ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <>
Subject Re: How to register a customn BuildListener
Date Mon, 27 Jun 2005 16:39:06 GMT
Maybe override the "setProject" method on your DataType extensions and 
handle the registration there?

Jeffrey E. Care (
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)

Tim Kettler <> 
06/27/2005 12:14 PM
Please respond to
"Ant Users List"


How to register a customn BuildListener


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 

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:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message