Mercurial > bitten > bitten-test
changeset 300:585ed4cd921e
Allow setting the `JAVA_HOME` environment variable from the slave configuration. Closes #73. Thanks to Matt Good for the patch.
author | cmlenz |
---|---|
date | Thu, 03 Nov 2005 19:48:30 +0000 |
parents | a40325666b5a |
children | d486e34084af |
files | bitten/build/javatools.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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: