Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specifying jvm arguments in ant tasks

I am specifying jvm arguments since i was getting out of heap space exception so just to avoid that i was specifying the below parameters in my ant target that is as shown below..

  <junit
   printsummary="true"
   fork="yes"
   haltonfailure="false"
   failureproperty="junitsFailed"
   errorProperty="junitsFailed"
  >
   <jvmarg value=" -Xmx1024m -Duser.timezone=GMT0"/>
  </junit>

but below i am getting the below exception ..

that is the invalid parameters are specified
like image 205
user3875672 Avatar asked Jan 29 '26 06:01

user3875672


1 Answers

Use multiple <jvmarg> elements:

<junit printsummary="true" fork="yes" haltonfailure="false" failureproperty="junitsFailed" errorProperty="junitsFailed">
    <jvmarg value="-Xmx1024m"/>
    <jvmarg value="-Duser.timezone=GMT0"/>
</junit>
like image 62
Chad Nouis Avatar answered Jan 31 '26 20:01

Chad Nouis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!