Mercurial > hg > truffle
diff src/share/tools/ProjectCreator/BuildConfig.java @ 4597:8bc6f680a88d
fixed visual studio project files
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Tue, 14 Feb 2012 15:01:36 -0800 |
parents | 76841bdd5f3e |
children | 0f899c0b7e86 |
line wrap: on
line diff
--- a/src/share/tools/ProjectCreator/BuildConfig.java Tue Feb 14 14:01:37 2012 -0800 +++ b/src/share/tools/ProjectCreator/BuildConfig.java Tue Feb 14 15:01:36 2012 -0800 @@ -68,16 +68,13 @@ if (value != null) { outDir = value; } - if(outDir.endsWith("fastdebug")) { - outDir = outDir.substring(0, outDir.lastIndexOf("fastdebug") - 1); - } else if (outDir.endsWith("debug")) { - outDir = outDir.substring(0, outDir.lastIndexOf("debug") - 1); + + int lastDirectorySeparator = Math.max(outDir.lastIndexOf("/"), outDir.lastIndexOf("\\")); + if (lastDirectorySeparator >= 0) { + outDir = outDir.substring(0, lastDirectorySeparator); } - if (!build.equals("product")) { - outDir += Util.sep + build; - } - outDir += Util.sep + "jre" + Util.sep + "bin"; + outDir += Util.sep + build + Util.sep + "bin"; if (flavour.equals("graal")) { outDir += Util.sep + "graal"; } else if (flavour.equals("compiler1")) {