[xep-support] Re: getting failed XEP build to make ant task fail

From: Mark Giffin <mgiffin@earthlink.net>
Date: Thu Jan 10 2013 - 10:33:37 PST

Thanks Ken! I'm already using the -Xmx switch and XEP works fine with
this doc from the command line outside of ant. I'll check what's
happening with ant a little more carefully.

Mark

On 1/8/13 6:21 AM, G. Ken Holman wrote:
> At 2013-01-07 16:57 -0800, Mark Giffin wrote:
>> 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?
>
> Although I don't know Java virtual machines very well, I doubt XEP is
> even in the picture at the time the error message because of the wording:
>
> "Error occurred during initialization of VM"
>
> Do you have evidence that XEP is actually running? Perhaps any
> startup messages from XEP?
>
> Wouldn't the virtual machine have to be initialized and up and running
> before even starting XEP?
>
> I'm guessing your problem is elsewhere. Did you use memory management
> parameters when you invoked Ant? If not, it could simply be that Ant
> is running out of memory. Often when I invoke Ant I use the following
> Java parameters to make a bigger memory footprint available to the
> processes that my script invokes:
>
> -Xss2m -Xms128m -Xmx1024m
>
> I hope this helps.
>
> . . . . . . . . . Ken
>
>

!DSPAM:87,50ef098a9853243019791!

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Thu Jan 10 10:33:50 2013

This archive was generated by hypermail 2.1.8 : Thu Jan 10 2013 - 10:33:51 PST