# HG changeset patch # User Jaroslav Tulach # Date 1433237224 -7200 # Node ID ec47283499ef49ddc5074b6d05e102bf6e31bab4 # Parent 5f3dda39d20576c61daaf811a64660c95d4f8c05 Fail the build when there are compile errors diff -r 5f3dda39d205 -r ec47283499ef mxtool/mx.py --- 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'})