You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/12/31 12:14:19 UTC

DO NOT REPLY [Bug 1509] - Project object not fully functional in BuildEvents

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1509>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1509

Project object not fully functional in BuildEvents





------- Additional Comments From bob.kerns@firepond.com  2001-12-31 03:14 -------
It seems the BuildListener interface was designed to be unextensible. My 
suggestion: Switch to a publish/subscribe model, with a compatibility adaptor.

1) Create an ExtendedBuildListener interface.
2) Give ExtendedBuildListener one method: buildEvent(BuildEvent)
3) Make BuildEvent abstract.
4) Create concrete BuildEvent classes for each type of event to deliver.
5) Add Project.addBuildListener(Class, ExtendedBuildListener) to register for 
specific events (or categories of events).
6) Deliver these events *instead*.
7) Redo Project.addBuildListener(BuildListener) to register for the current set 
of events, using adaptors.
8) Add new events as needed, without breaking existing code.

-- Or use JMS --

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>