changeset 297:920a32df62c3 0.5.x

Ported [308] to 0.5.x branch.
author cmlenz
date Wed, 26 Oct 2005 22:09:28 +0000
parents c0439a21b01d
children a89b9d945136
files bitten/build/javatools.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/build/javatools.py
+++ b/bitten/build/javatools.py
@@ -27,6 +27,7 @@
         executable = os.path.join(ant_home, 'bin', 'ant')
 
     logfile = tempfile.NamedTemporaryFile(prefix='ant_log', suffix='.xml')
+    logfile.close()
     if args:
         args = shlex.split(args)
     else:
@@ -51,7 +52,7 @@
     error_logged = False
     log_elem = xmlio.Fragment()
     try:
-        xml_log = xmlio.parse(logfile)
+        xml_log = xmlio.parse(file(logfile.name, 'r'))
         def collect_log_messages(node):
             for child in node.children():
                 if child.name == 'message':
Copyright (C) 2012-2017 Edgewall Software