On Mar 26, 2012, at 11:05 PM, Mansour Al Akeel wrote:
> Using ant task is not so bad. I think it supports something like
> daemons in the parallel task, where tomcat can be started in the
> background.
> another task from antconrib is "forget"
> http://ant-contrib.sourceforge.net/tasks/tasks/forget.html
Mansour, this is interesting, thank you.
I think we can add a new task to run OFBiz as a separate process using the
"spawn" attribute:
<target name="run-batch"
description="This will start OFBiz in a separate process">
<java jar="ofbiz.jar" fork="true" spawn="true">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${pos.memory.max.param}"/>
<jvmarg value="${memory.maxpermsize.param}"/>
<sysproperty key="ofbiz.admin.port" value="${ofbiz.admin.port}"/>
<sysproperty key="ofbiz.admin.key" value="${ofbiz.admin.key}"/>
</java>
</target>
Jacopo