Bug ID: 54219
           Summary: The ANT task "" never
                    throws a build exception
           Product: Fop
           Version: all
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
    Classification: Unclassified

A concrete example, the DITA OT project uses a series of ANT build files to
publish DITA to PDF.

The Apache FOP task "" is used for this.

If the task fails (for example the PDF is opened in another application or the
XSL-FO file has severe validation problems) it should throw an ANT
BuildException because there is no need to continue the entire ANT build as if
nothing happened.

Instead, the method ",
File, String)" catches all exceptions and just logs them in the console.

This means that it is possible that ANT finishes with a "Build succesfull"
message and in fact the PDF was not produced at all.

Maybe you should add a "failonerror" attribute to the task and have it fail by
default when an error is encountered.

You are receiving this mail because:
You are the assignee for the bug.

Reply via email to