ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 1509] - Project object not fully functional in BuildEvents
Date Mon, 31 Dec 2001 11:14:19 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message