Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
5580:69358a2182a3 | 5581:9911227e6dd3 |
---|---|
170 self.deps = deps | 170 self.deps = deps |
171 self.checkstyleProj = name | 171 self.checkstyleProj = name |
172 self.javaCompliance = JavaCompliance(javaCompliance) if javaCompliance is not None else None | 172 self.javaCompliance = JavaCompliance(javaCompliance) if javaCompliance is not None else None |
173 self.native = False | 173 self.native = False |
174 self.dir = dir | 174 self.dir = dir |
175 | |
176 # Create directories for projects that don't yet exist | |
177 if not exists(dir): | |
178 os.mkdir(dir) | |
179 for s in self.source_dirs(): | |
180 if not exists(s): | |
181 os.mkdir(s) | |
175 | 182 |
176 def all_deps(self, deps, includeLibs, includeSelf=True): | 183 def all_deps(self, deps, includeLibs, includeSelf=True): |
177 """ | 184 """ |
178 Add the transitive set of dependencies for this project, including | 185 Add the transitive set of dependencies for this project, including |
179 libraries if 'includeLibs' is true, to the 'deps' list. | 186 libraries if 'includeLibs' is true, to the 'deps' list. |