You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "victoriavargas (JIRA)" <ji...@apache.org> on 2019/01/31 08:03:00 UTC

[jira] [Updated] (FOP-2168) The ANT task "org.apache.fop.tools.anttasks.Fop" never throws a build exception

     [ https://issues.apache.org/jira/browse/FOP-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

victoriavargas updated FOP-2168:
--------------------------------
    Attachment: c1000-031-Exam-Dumps-NewYear-2019.pdf

> The ANT task "org.apache.fop.tools.anttasks.Fop" never throws a build exception
> -------------------------------------------------------------------------------
>
>                 Key: FOP-2168
>                 URL: https://issues.apache.org/jira/browse/FOP-2168
>             Project: FOP
>          Issue Type: Bug
>          Components: unqualified
>    Affects Versions: trunk
>         Environment: Operating System: 
> Platform: PC
>            Reporter: Radu Coravu
>         Attachments: c1000-031-Exam-Dumps-NewYear-2019.pdf
>
>
> A concrete example, the DITA OT project uses a series of ANT build files to publish DITA to PDF.
> The Apache FOP task "org.apache.fop.tools.anttasks.Fop" 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 "org.apache.fop.tools.anttasks.FOPTaskStarter.render(File, 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)