[xep-support] getting failed XEP build to make ant task fail
Mark Giffin
mgiffin at earthlink.net
Mon Jan 7 16:57:50 PST 2013
I'm using Apache Ant to run XEP like this:
<exec dir="." executable="cmd.exe" failonerror="true">
<arg line="/c xep -valid -fo output.fo -out output\reference.pdf"/>
</exec>
Even though I use ant's @failonerror="true" attribute, the ant script
does not fail when the XEP build fails. I get this error before XEP gets
going, but ant still says the build was successful:
...
[exec] Error occurred during initialization of VM
[exec] Could not reserve enough space for object heap
[exec] Could not create the Java virtual machine.
BUILD SUCCESSFUL
I am running ant from inside the Jenkins CI tool. I would like it if XEP
could return -1 or something to tell ant that it failed. Is this possible?
Thanks,
Mark
!DSPAM:87,50eb6f179854018628093!
More information about the Xep-support
mailing list