Fixes 10771: Increase the build.maxmemory for 64bit systems
authorJuan Pablo Aroztegi <juanpablo.aroztegi@openbravo.com>
Fri, 12 Feb 2010 11:14:29 +0100
changeset 6247 5869dd8ab2f0
parent 6246 4c4938381a2b
child 6248 1b948092c2f7
child 6252 a5391a2c1252
Fixes 10771: Increase the build.maxmemory for 64bit systems
build.xml
config/Openbravo.properties.template
--- a/build.xml	Fri Feb 12 10:20:43 2010 +0100
+++ b/build.xml	Fri Feb 12 11:14:29 2010 +0100
@@ -167,8 +167,12 @@
   <property name="lib" location="${jakarta.home}/common" />
   <property name="jakarta.context" location="${jakarta.base}/webapps/${context.name}" />
 
-  <condition property="build.maxmemory" value="512M">
-    <isset property="build.maxmemory"/>
+  <condition property="build.maxmemory" value="1024M" else="512M">
+    <or>
+      <equals arg1="${os.arch}" arg2="amd64" />
+      <equals arg1="${os.arch}" arg2="x86_64" />
+      <equals arg1="${os.arch}" arg2="ia64" />
+    </or>
   </condition>
 
   <condition property="no.java.home" value="true">
--- a/config/Openbravo.properties.template	Fri Feb 12 10:20:43 2010 +0100
+++ b/config/Openbravo.properties.template	Fri Feb 12 11:14:29 2010 +0100
@@ -144,8 +144,3 @@
 # defined by this property, note the value should be the complete path 
 # including the file name and extension.
 # hibernate.hbm.file=/tmp/hibernate.hbm.xml
-
-#####################
-# Advanced settings #
-#####################
-build.maxmemory=512M