Is is possible to have fop abort with non-zero exit code when an image isn't found

2013-10-09 Thread Wolgast Olof
Hi

I turn to the mailing list because I haven't been able to find the answer 
somewhere else. I would like to run fop from gnu make and have fop abort and 
return a non-zero exit code if an image isn't found. Now a warning message 
("Image not found. URI; ..." is printed and the pdf is created. Hence gnu make 
continues and the error isn't detected until the log file or the produced pdf 
is manually inspected. Is there any setting which makes fop abort with a 
non-zero exit code? If not, should I submit a feature request?

// Olof


Re: Is is possible to have fop abort with non-zero exit code when an image isn't found

2013-10-10 Thread Luis Bernardo


I don't think so.

If you don't mind compiling the code, you can easily abort FOP if an 
image is missing by changing the @event.severity from ERROR to FATAL in 
org.apache.fop.ResourceEventProducer and building (ant clean package). 
But feel free to submit a feature request.


On 10/9/13 9:31 AM, Wolgast Olof wrote:


Hi

I turn to the mailing list because I haven't been able to find the 
answer somewhere else. I would like to run fop from gnu make and have 
fop abort and return a non-zero exit code if an image isn't found. Now 
a warning message ("Image not found. URI; ..." is printed and the pdf 
is created. Hence gnu make continues and the error isn't detected 
until the log file or the produced pdf is manually inspected. Is there 
any setting which makes fop abort with a non-zero exit code? If not, 
should I submit a feature request?


// Olof





Re: Is is possible to have fop abort with non-zero exit code when an image isn't found

2013-10-10 Thread Bonekrusher
Another approach if you are using xslt. is to use an extension to check if a
file exists and if it does not exist terminate with xsl:message
terminate="yes"





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Is-is-possible-to-have-fop-abort-with-non-zero-exit-code-when-an-image-isn-t-found-tp39340p39361.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org