Search code examples
flashantmxmlc

How do I catch mxmlc ant task failure


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?


Solution

  • Consider the ant-contrib try-catch support.