# HG changeset patch # User cmlenz # Date 1131047310 0 # Node ID 585ed4cd921e76434e15f360154cfa2a66c5e7ae # Parent a40325666b5a61710f55aa00929ab003739025c8 Allow setting the `JAVA_HOME` environment variable from the slave configuration. Closes #73. Thanks to Matt Good for the patch. diff --git a/bitten/build/javatools.py b/bitten/build/javatools.py --- a/bitten/build/javatools.py +++ b/bitten/build/javatools.py @@ -26,6 +26,10 @@ if ant_home: executable = os.path.join(ant_home, 'bin', 'ant') + java_home = ctxt.config.get_dirpath('java.home') + if java_home: + os.environ['JAVA_HOME'] = java_home + logfile = tempfile.NamedTemporaryFile(prefix='ant_log', suffix='.xml') logfile.close() if args: