I wrote an ant org.apache.tools.ant.BuildListener that does stuff if the build fails. I can use it from the command line with ant -listener org.smottguyz.antlisteners.SimpleListener build_all
. But when I use the NetBeans IDE, there is no apparent way to specify a -listener
option.
Is there a way to specify an additional build listener with ant (or NetBeans) properties, settings or configuration somewhere?
EDIT. It turns out this is pretty NetBeans specific, because, for whatever reason, NetBeans disables most of the approaches that work for most ant configurations. So Is it possible to specify logger for ant inside build.xml? is relevant, but not an answer :(
Thanks!