On 01/20/2014 04:38 PM, Mike Dodds wrote:
Is there a way to suppress the output of the processEvent and INFO
messages, but still get the WARNINGs and higher messages from FOP:
ditac: ERROR: 20-Jan-2014 15:26:52
org.apache.fop.events.LoggingEventListener processEvent
ditac: ERROR: INFO: Rendered page #194.
ditac: ERROR: 20-Jan-2014 15:26:53
org.apache.fop.events.LoggingEventListener processEvent
ditac: ERROR: INFO: Rendered page #195.
ditac: ERROR: 20-Jan-2014 15:26:53
org.apache.fop.events.LoggingEventListener processEvent
ditac: ERROR: WARNING: Line 2 of a paragraph overflows the available
area by 488 millipoints. (See position 1742:2282)
I can add more detail with –v, but not less. I have –q on the FOP
parameters.
If the answer is “No” that’s fine, I’ll just have to educate our builds
person ;)
There is no ditac command-line option which could be used to discard
error messages.
Because FOP emits all its messages on stderr (the standard error stream
of a process), ditac thinks that all its messages (whether "INFO:",
"WARNING:", "ERROR:" or no prefix at all) are *error* messages. Hence
the annoying behavior you describe.
The workaround is, as you guessed it, probably on the FOP side. I don't
know FOP well enough to suggest this workaround.
Note that by default ditac invokes FOP as follows:
---
fop -q -r -fo "%I" -pdf "%O"
---
Therefore the "-q" flag seems to be ineffective to suppress the annoying
behavior you describe.
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support