comparison src/share/tools/ProjectCreator/WinGammaPlatformVC7.java @ 12021:bd0e82136b03

8022740: Visual 2008 IDE build is broken Summary: Fixed project generation code, and added warning to upgrade to VS 2008 SP1. Reviewed-by: dcubed, ccheung
author iklam
date Sat, 10 Aug 2013 10:56:27 -0700
parents b9a9ed0f8eeb
children 3cce976666d9 de6a9e811145
comparison
equal deleted inserted replaced
12020:7b03590c334b 12021:bd0e82136b03
137 137
138 tag("Tool", new String[] { "Name", "VCCustomBuildTool" }); 138 tag("Tool", new String[] { "Name", "VCCustomBuildTool" });
139 139
140 tagV("Tool", cfg.getV("LinkerFlags")); 140 tagV("Tool", cfg.getV("LinkerFlags"));
141 141
142 tag("Tool", 142 String postBuildCmd = BuildConfig.getFieldString(null,
143 new String[] { 143 "PostbuildCommand");
144 "Name", 144 if (postBuildCmd != null) {
145 "VCPostBuildEventTool", 145 tag("Tool",
146 "Description", 146 new String[] {
147 BuildConfig 147 "Name",
148 .getFieldString(null, "PostbuildDescription"), 148 "VCPostBuildEventTool",
149 // Caution: String.replace(String,String) is available 149 "Description",
150 // from JDK5 onwards only 150 BuildConfig
151 "CommandLine", 151 .getFieldString(null, "PostbuildDescription"),
152 cfg.expandFormat(BuildConfig.getFieldString(null, 152 // Caution: String.replace(String,String) is available
153 "PostbuildCommand").replace("\t", 153 // from JDK5 onwards only
154 "
")) }); 154 "CommandLine",
155 cfg.expandFormat(postBuildCmd.replace("\t",
156 "
")) });
157 }
155 158
156 tag("Tool", new String[] { "Name", "VCPreBuildEventTool" }); 159 tag("Tool", new String[] { "Name", "VCPreBuildEventTool" });
157 160
158 tag("Tool", 161 tag("Tool",
159 new String[] { 162 new String[] {