ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barry Searle <>
Subject how to cause Ant BuildException in a JACL script inside an Ant build.xml ?
Date Tue, 18 May 2004 17:39:10 GMT
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 
                java::throw $buildExc

What I got was (tcl.lang.ReflectException):
      [script] BUILD FAILED: 

How can I make this a clean (normal) Ant BuildException ?

Barry Searle,, 

View raw message