You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Barry Searle <se...@ca.ibm.com> on 2004/05/18 19:39:10 UTC
how to cause Ant BuildException in a JACL script inside an Ant build.xml ?
I have a JACL script inside an Ant build.xml, and under certain
conditions I want it to cause a standard Ant BuildException.
What I tried was:
set buildExc [java::new BuildException "failOnError
errorCount=$errorCount"]
java::throw $buildExc
What I got was (tcl.lang.ReflectException):
[script] BUILD FAILED:
file:G:/workspace_v511/AdderEAR/prodBuild.xml:33:
tcl.lang.ReflectException
How can I make this a clean (normal) Ant BuildException ?
Barry Searle, searle@ca.ibm.com,