diff mx/commands.py @ 4216:a13d61d3910e

fix for when no vm build is explicitely selected
author Gilles Duboscq <gilles.m.duboscq@gmail.com>
date Wed, 04 Jan 2012 19:47:17 +0100
parents a2caa019ba3a
children 47f7d91d34cf
line wrap: on
line diff
--- a/mx/commands.py	Wed Jan 04 13:52:46 2012 +0100
+++ b/mx/commands.py	Wed Jan 04 19:47:17 2012 +0100
@@ -612,6 +612,6 @@
         mx.abort('Requires Java version 1.7 or greater, got version ' + version)
     
     if (_vmSourcesAvailable):
-        if hasattr(opts, 'vmbuild'):
+        if hasattr(opts, 'vmbuild') and opts.vmbuild is not None:
             global _vmbuild
             _vmbuild = opts.vmbuild