Perhaps instead of a Java program, you could use a Java task? See
org.apache.derbyPreBuild.PropertySetter for an example. I think you
basically just take your test and make it throw a BuildException if you
want the build to fail.

Thx Knut, that's what I meant - use a java task to execute a java class.

I think what Knut was suggesting was that you could write a custom
Ant task. That way, if you detect a problem, you can actually cause
the build to fail, in an elegant Ant-integrated fashion, by throwing
Ant's BuildException from your Ant task code.

thanks,

bryan

Reply via email to