/[Apache-SVN]
ViewVC logotype

Revision 267694


Jump to revision: Previous Next
Author: conor
Date: Sat Jun 24 10:55:45 2000 UTC (23 years, 10 months ago)
Changed paths: 10
Log Message:
Add BuildEvents to Ant

The basic idea is to keep the core build engine "clean" and free of any
presentation logic, and to make it easier to extend Ant with other features
without cluttering up the core. To do this, I've defined a BuildListener
interface and added an "addBuildListener" method to Project that can be
used to register listener objects. Listeners could be implemented to
generate reports, send out emails when the build is complete, create a
bill of materials, etc...

The only new functionality visible to the end-user is a "-listener" option
on the command line that will let you specify the name of a class. An
instance of this class will be added as a listener to the project. I've
included a listener that will generate an XML log file, which you can use
by typing the command below.

build -listener org.apache.tools.ant.XmlLogger

PR:
Obtained from:
Submitted by:	Matt Foemmel <mpfoemme@ThoughtWorks.com>
Reviewed by:


Changed paths

Path Details
Directoryant/core/trunk/src/main/org/apache/tools/ant/BuildEvent.java added
Directoryant/core/trunk/src/main/org/apache/tools/ant/BuildListener.java added
Directoryant/core/trunk/src/main/org/apache/tools/ant/DefaultLogger.java added
Directoryant/core/trunk/src/main/org/apache/tools/ant/Main.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/ant/Project.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/ant/Target.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/ant/XmlLogger.java added
Directoryant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ant.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26