if (!projectDef.getOverwrite() && slnFile.exists()) {
throw new BuildException("Not allowed to overwrite project file "
+ slnFile.toString());
}
CommandLineCompilerConfiguration compilerConfig =
getBaseCompilerConfiguration(targets);
if (compilerConfig == null) {
throw new BuildException(
"Unable to generate Visual Studio.NET project "
+ "when Microsoft C++ is not used.");