DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3968>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3968 Need way to have ejbjar task continue when errors occur ------- Additional Comments From [EMAIL PROTECTED] 2001-10-04 08:38 ------- Here is the possible code (line numbers apply to ANT version 1.4) changes to org.apache.tools.ant.taskdefs.optional.ejb.EjbJar: add on line 132 (inner class 'Config'): /** Stores if the build should fail on an EJBC error */ public boolean failOnError = true; add on any class line (for me it was 420): /** * Set if the task should cause the rest of the build to halt if this * task fails */ public void setFailonerror(boolean value) { config.failOnError = value; } In 'execute()' change (new) line 537. Old code: EJBDeploymentTool tool = (EJBDeploymentTool)i.next(); tool.processDescriptor(files[index], saxParser); new code: EJBDeploymentTool tool = (EJBDeploymentTool)i.next(); try { tool.processDescriptor(files[index], saxParser); } catch (BuildException be) { if (config.failOnError) throw (BuildException)be.fillInStackTrace(); } -Andrew
