1

I've tried using the haltonfailure="false" and failureproperty="compile.failed" but ant just throws an error when I try to run it: "The <mxmlc> type doesn't support the "haltonfailure" attribute."

I need to do a little cleanup before the build script exits if the mxmlc task fails, how do I achieve this?

Flassari
  • 1,149
  • 8
  • 13
  • see this posting answering a similar question =
    http://stackoverflow.com/questions/6387319/conditional-task-on-exec-failure-in-ant/6391165#6391165
    – Rebse Jul 01 '11 at 19:10

1 Answers1

2

Consider the ant-contrib try-catch support.

Ed Staub
  • 15,480
  • 3
  • 61
  • 91