From 0f7cc990c3179dfde455d9e9dcaa6e6af198de0b Mon Sep 17 00:00:00 2001 From: jmoore Date: Wed, 22 Feb 2012 09:11:17 +0100 Subject: [PATCH] Prevent use of ant directly With the logic for versioning added to build.py directly, it is now somewhat confusing to mix uses of build.py and ant. This commit permits only the use of build.py (or specifically only runs of ant where -Dbuild.py=true). --- build.py | 1 + components/antlib/resources/global.xml | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/build.py b/build.py index 255c8d1da10..e1201f6842b 100755 --- a/build.py +++ b/build.py @@ -89,6 +89,7 @@ def java_omero(args): command = [ find_java() ] p = os.path.join( os.path.curdir, "lib", "log4j-build.xml") command.append("-Dlog4j.configuration=%s" % p) + command.append("-Dbuild.py=true") command.extend( calculate_memory_args() ) command.extend(["omero"]) command.extend(choose_omero_version()) diff --git a/components/antlib/resources/global.xml b/components/antlib/resources/global.xml index 4d1f80817b4..b2222079ddd 100644 --- a/components/antlib/resources/global.xml +++ b/components/antlib/resources/global.xml @@ -214,6 +214,19 @@ + + + + ERROR! + +======================================================== +Please use ./build.py which uses the ant version bundled +with OMERO. +======================================================== + + + +