Author: jacopoc
Date: Thu Mar 29 10:02:35 2012
New Revision: 1306777
URL:
http://svn.apache.org/viewvc?rev=1306777&view=revLog:
Added new ant task to start OFBiz as a process in the background: "run-batch".
Moved the "stop" task a few lines below to group together all the tasks dealing with the startup of OFBiz.
Modified:
ofbiz/trunk/build.xml
Modified: ofbiz/trunk/build.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=1306777&r1=1306776&r2=1306777&view=diff==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Thu Mar 29 10:02:35 2012
@@ -375,17 +375,19 @@ under the License.
<sysproperty key="ofbiz.admin.key" value="${ofbiz.admin.key}"/>
</java>
</target>
- <target name="stop"
- description="This will stop OFBiz">
- <java jar="ofbiz.jar" fork="true">
+ <target name="run-batch"
+ description="This will start OFBiz as 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}"/>
- <arg value="-shutdown"/>
</java>
</target>
<target name="run-debug" depends="build"
description="Starts OFBiz in debugging mode">
- <java jar="ofbiz.jar" fork="true">
+ <java jar="ofbiz.jar" fork="true">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${memory.max.param}"/>
<jvmarg value="${memory.maxpermsize.param}"/>
@@ -406,6 +408,14 @@ under the License.
<arg value="pos"/>
</java>
</target>
+ <target name="stop"
+ description="This will stop OFBiz">
+ <java jar="ofbiz.jar" fork="true">
+ <sysproperty key="ofbiz.admin.port" value="${ofbiz.admin.port}"/>
+ <sysproperty key="ofbiz.admin.key" value="${ofbiz.admin.key}"/>
+ <arg value="-shutdown"/>
+ </java>
+ </target>
<!-- ================================================================== -->
<!-- Setup OFBiz Data -->