Mercurial > hg > truffle
changeset 21653:ec47283499ef
Fail the build when there are compile errors
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Tue, 02 Jun 2015 11:27:04 +0200 |
parents | 5f3dda39d205 |
children | 31f4a8259879 |
files | mxtool/mx.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mxtool/mx.py Mon Jun 01 12:55:56 2015 +0200 +++ b/mxtool/mx.py Tue Jun 02 11:27:04 2015 +0200 @@ -633,6 +633,7 @@ if canSymlink and 'symlink' in dir(os): if exists(path): os.unlink(path) + print 'Path ' + cachePath + ' path: ' + path os.symlink(cachePath, path) else: shutil.copy(cachePath, path) @@ -4429,7 +4430,7 @@ out.close('target') out.open('target', {'name' : 'compile'}) - out.open('exec', {'executable' : sys.executable}) + out.open('exec', {'executable' : sys.executable, 'failonerror' : 'true'}) out.element('env', {'key' : 'JAVA_HOME', 'value' : jdk.jdk}) out.element('arg', {'value' : os.path.abspath(__file__)}) out.element('arg', {'value' : 'build'})