Re: svn commit: r1306777 - /ofbiz/trunk/build.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1306777 - /ofbiz/trunk/build.xml

Malin Nicolas
Hi jacopo, simple but powerful improvement for production :)


Le 29/03/2012 12:02, [hidden email] a écrit :

> Author: jacopoc
> Date: Thu Mar 29 10:02:35 2012
> New Revision: 1306777
>
> URL: http://svn.apache.org/viewvc?rev=1306777&view=rev
> Log:
> 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                                                   -->
>
>


--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/