Mercurial > hg > graal-compiler
diff mxtool/mx.py @ 5581:9911227e6dd3
create directories for not yet existing projects
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 13 Jun 2012 00:24:28 +0200 |
parents | 271e83dcfcef |
children | e9f7d16194a8 |
line wrap: on
line diff
--- a/mxtool/mx.py Wed Jun 13 00:15:15 2012 +0200 +++ b/mxtool/mx.py Wed Jun 13 00:24:28 2012 +0200 @@ -172,6 +172,13 @@ self.javaCompliance = JavaCompliance(javaCompliance) if javaCompliance is not None else None self.native = False self.dir = dir + + # Create directories for projects that don't yet exist + if not exists(dir): + os.mkdir(dir) + for s in self.source_dirs(): + if not exists(s): + os.mkdir(s) def all_deps(self, deps, includeLibs, includeSelf=True): """