changeset 21984:de52ea7de779

Doug prefers usage of abort
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Fri, 26 Jun 2015 16:04:15 +0200
parents b8dffa0113ca
children 4858c5e074e9
files mx.truffle/mx_truffle.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mx.truffle/mx_truffle.py	Fri Jun 26 15:51:50 2015 +0200
+++ b/mx.truffle/mx_truffle.py	Fri Jun 26 16:04:15 2015 +0200
@@ -1215,7 +1215,7 @@
         slash = path.rfind('/')
         dot = path.rfind('.')
         if dot <= slash:
-            raise Exception('Dot should be after / in ' + path)
+            mx.abort('Dot should be after / in ' + path)
         artifactId = path[slash + 1: dot]
         mx.run(['mvn', 'install:install-file', '-DgroupId=com.oracle.' + dist.suite.name, '-DartifactId=' + artifactId, '-Dversion=' + graal_version('SNAPSHOT'), '-Dpackaging=jar', '-Dfile=' + path])