Skip to content

Commit

Permalink
Quick fix of build.py builds
Browse files Browse the repository at this point in the history
Previous fix broke "./build.py clean" and
other commands run by docs/hudson/OMERO.sh.
  • Loading branch information
joshmoore committed Feb 27, 2012
1 parent 7c66fc8 commit 02dec01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import time
import subprocess

BUILD_PY = "-Dbuild.py=true"


def popen(args, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE):
copy = os.environ.copy()
Expand Down Expand Up @@ -89,7 +91,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.append(BUILD_PY)
command.extend( calculate_memory_args() )
command.extend(["omero"])
command.extend(choose_omero_version())
Expand Down Expand Up @@ -119,7 +121,7 @@ def choose_omero_version():
if omero_build:
omero_build = "-b%s" % omero_build

command = [ find_java(), "omero","-q","version" ]
command = [ find_java(), "omero",BUILD_PY,"-q","version" ]
err = ""
try:
p = popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit 02dec01

Please sign in to comment.