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:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267694 13f79535-47bb-0310-9956-ffa450edef68
com.oreilly.servlet. I did that since it's going to be a mirror
of what's in the larger com.oreilly.servlet package. I put
it under the Apache license of course, and added the ASF as an
additional copyright holder. Code can have two copyright holders,
meaning either party can do as they wish with the code. This lets
the ASF upgrade to Apache License 1.2 sometime in the future, and
lets me be able to use the code without thanking the ASF for code
I wrote. :-) Updated build.xml to handle the new package.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267693 13f79535-47bb-0310-9956-ffa450edef68
Catch NoClassDefFoundError as well as NullPointerException and
emit a more meaningful error message.
Change BuildException to accept Errors as well as Exceptions
as cause.
Submitted by: Stefan Bodewig <bodewig@bost.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267682 13f79535-47bb-0310-9956-ffa450edef68
This patch adds quiet and noexec attributes (for the -q and -n
switches) and a command attribute that specifies which CVS command to
execute.
The default command is "checkout" to remain compatible to the existing
behaviour.
Submitted by:
Wolfgang Werner [wwerner@picturesafe.de]
update by Stefan Bodewig [bodewig@bost.de]
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267680 13f79535-47bb-0310-9956-ffa450edef68
NetRexxC 1.160 or higher needed (due to bugs in the way the compiler
handles error streams).
Note: I changed the package names and converted the calls from using
Introspection to directly calling the compiler.
Submitted by: dIon Gillard <dion@multitask.com.au>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267637 13f79535-47bb-0310-9956-ffa450edef68
While some (like chmod) are clearly Mac motivated, others (like Javac) are
fixes to bugs that can appear on any platform.
Submitted by: William Uther <will+ant@cs.cmu.edu>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267621 13f79535-47bb-0310-9956-ffa450edef68
Also fix two files to compile with the more strict Jikes compiler.
Submitted by: Sebastian Kanthak <sebastian.kanthak@muehlheim.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267619 13f79535-47bb-0310-9956-ffa450edef68
It can be used to add a short description of what the particular instance
of the task is doing - instead of/in addition to xml comments.
It can be usefull to display it if a task fails, and it's a good way to
document the file.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267618 13f79535-47bb-0310-9956-ffa450edef68