[
https://issues.apache.org/jira/browse/FOP-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15146539#comment-15146539
]
Simon Pepping commented on FOP-2569:
------------------------------------
Regarding ant's failure to report failure of the compile-hyphenation target:
Current situation: Report failure for compile-hyphenation, but continue to
build and exit with success. This is misleading.
Desired: Upon a failure of compile-hyphenation, continue to build but exit with
a failure and an appropriate message. Is this possible in ant?
Possible solution: Add a fail condition to compile-hyphenation:
>diff build.xml~ build.xml
447a448,454
> <fail><condition><isfailure code="${hyph.result}"/></condition>
> NOTE:
> **************************************************************************
> * One or more hyphenation patterns could not be compiled! *
> * Please check the output above for relevant messages. *
> **************************************************************************
> </fail>
This makes the build fail if there are hyphenation pattern files in /hyph which
cannot be compiled. This happens for target compile-hyphenation and all its
dependent targets, specifically jar-hyphenation, package and all.
If someone wants to build regardless of failures to compile hyphenation
patterns, just do not have such patterns in the /hyph directory.
> Exception in thread "main" java.lang.StackOverflowError at
> org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: FOP-2569
> URL: https://issues.apache.org/jira/browse/FOP-2569
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Mathieu Malaterre
> Fix For: 1.1
>
>
> fop + offo is broken since release 2.0 (and 2.1). It used to be possible to
> build fop-hyph.jar using fop 1.1. Please resurrect a working hyph building
> mechanism.
> Here is what it states:
> $ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -Xss512k -classpath
> /home/mathieu/debian/fop/fop-2.1/build/classes
> org.apache.fop.hyphenation.SerializeHyphPattern
> /home/mathieu/debian/fop/fop-2.1/hyph
> /home/mathieu/debian/fop/fop-2.1/build/classes/hyph
> Processing /home/mathieu/debian/fop/fop-2.1/hyph/sa.xml
> Exception in thread "main" java.lang.StackOverflowError
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> [...]
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> See thread:
> http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201602.mbox/%3CCA%2B7wUszWN2PdZY_t_Kgn0E4eatL7CUQswOWj9XC%3Dg9GDdgsyXw%40mail.gmail.com%3E
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)