From cb38d3ef6be8fd5b0e0eb3ec69275e0aab61fed9 Mon Sep 17 00:00:00 2001 From: jmoore Date: Fri, 5 Apr 2013 11:53:26 +0200 Subject: [PATCH] Remove hard-coded memory settings for 64bit Java 6 maxmem is no longer set for javac and javadoc in etc/local.properties.example. Nor are these set by build.py. If the system is detected to be a 64 bit Java 6 VM, then no properties are set at all. Otherwise, defaults are taken. Note: my local environment had javac.maxmem set in ANT_OPTS which has likely made this more complicated then it ever needed to be. --- build.py | 2 +- build.xml | 161 ++++++++++++---------- components/antlib/resources/global.xml | 15 ++ components/antlib/resources/lifecycle.xml | 122 ++++++++++------ etc/local.properties.example | 4 +- 5 files changed, 186 insertions(+), 118 deletions(-) diff --git a/build.py b/build.py index 22d60853d1f..5e2c1bbc893 100755 --- a/build.py +++ b/build.py @@ -69,7 +69,7 @@ def find_java(): return "java" def calculate_memory_args(): - return "-Xmx600M -Djavac.maxmem.default=750M -Djavadoc.maxmem.default=750M -XX:MaxPermSize=256m".split(" ") + return "-Xmx600M -XX:MaxPermSize=256m".split(" ") def choose_omero_version(): """ diff --git a/build.xml b/build.xml index 5cdd76905e9..4dfa477d16c 100644 --- a/build.xml +++ b/build.xml @@ -678,81 +678,94 @@ To get started using Eclipse, execute "./build.py build-dev" and import the top- - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + Omero API ]]> +
OME Docs
+
OmeroJava Api
+

Version: ${omero.version}

+

Copyright © @@YEAR@@ The University of Dundee & Open Microscopy Environment. All Rights Reserved.

+ ]]>
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + - Omero API ]]> -
OME Docs
-
OmeroJava Api
-

Version: ${omero.version}

-

Copyright © @@YEAR@@ The University of Dundee & Open Microscopy Environment. All Rights Reserved.

- ]]>
- - - - - - - - - - - - - - - - - - - - ]]> @@ -1057,8 +1070,12 @@ omero.version=${omero.version} + *.maxmem.* settings + ------------------- javac.maxmem=${javac.maxmem} javadoc.maxmem=${javadoc.maxmem} + javac.maxmem.default=${javac.maxmem.default} + javadoc.maxmem.default=${javadoc.maxmem.default} diff --git a/components/antlib/resources/global.xml b/components/antlib/resources/global.xml index bf7b22d64ce..b8ebf9a7a9d 100644 --- a/components/antlib/resources/global.xml +++ b/components/antlib/resources/global.xml @@ -208,6 +208,21 @@ + + + + + + + + + + + + + + + diff --git a/components/antlib/resources/lifecycle.xml b/components/antlib/resources/lifecycle.xml index 9abf4bef205..b25bf51144b 100644 --- a/components/antlib/resources/lifecycle.xml +++ b/components/antlib/resources/lifecycle.xml @@ -4,10 +4,10 @@ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # $Id$ -# +# # Copyright 2006 University of Dundee. All rights reserved. # Use is subject to license terms supplied in LICENSE.txt -# +# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -116,6 +116,19 @@ omero.version=${omero.version} + + + + +