# HG changeset patch # User Laurent Daynes # Date 1351004897 -7200 # Node ID a9a50f21e0009c2166facab956005d13c77d2035 # Parent dcad13b2f6e8c7fd804fd524760e60fe001df75f Added change to copied directory's protection when source JDK directories are read-only. diff -r dcad13b2f6e8 -r a9a50f21e000 mx/commands.py --- a/mx/commands.py Mon Oct 22 20:22:50 2012 +0200 +++ b/mx/commands.py Tue Oct 23 17:08:17 2012 +0200 @@ -348,6 +348,8 @@ lines.append(line) assert defaultVM is not None, 'Could not find default VM in ' + jvmCfg + if mx.get_os() != 'windows': + os.chmod(_vmLibDirInJdk(jdk), 0755) shutil.copytree(join(_vmLibDirInJdk(jdk), defaultVM), join(_vmLibDirInJdk(jdk), defaultVM + '0')) with open(jvmCfg, 'w') as f: @@ -461,6 +463,8 @@ vmDir = join(_vmLibDirInJdk(jdk), vm) if not exists(vmDir): + if mx.get_os() != 'windows': + os.chmod(_vmLibDirInJdk(jdk), 0755) mx.log('Creating VM directory in JDK7: ' + vmDir) os.makedirs(vmDir)