code: private void writeMessage(final Writer writer, final String projectName, final String targtype) throws IOException {
      writer.write("!MESSAGE This is not a valid makefile. ");
      writer.write("To build this project using NMAKE,\r\n");
      writer.write("!MESSAGE use the Export Makefile command and run\r\n");
      writer.write("!MESSAGE \r\n");
      writer.write("!MESSAGE NMAKE /f \"");
      writer.write(projectName);
      writer.write(".mak\".\r\n");
      writer.write("!MESSAGE \r\n");
      writer.write("!MESSAGE You can specify a configuration when running NMAKE\r\n");
      writer.write("!MESSAGE by defining the macro CFG on the command line. ");
      writer.write("For example:\r\n");
      writer.write("!MESSAGE \r\n");
      writer.write("!MESSAGE NMAKE /f \"");
      writer.write(projectName);
      writer.write(".mak\" CFG=\"");
      writer.write(projectName);
      writer.write(" - Win32 Debug\"\r\n");
      writer.write("!MESSAGE \r\n");
      writer.write("!MESSAGE Possible choices for configuration are:\r\n");
      writer.write("!MESSAGE \r\n");
      final String pattern = "!MESSAGE \"{0} - Win32 {1}\" (based on \"{2}\")\r\n";
      writer.write(MessageFormat.format(pattern, new Object[] {
          projectName, "Release", targtype
      }));
      writer.write(MessageFormat.format(pattern, new Object[] {
          projectName, "Debug", targtype
      }));
      writer.write("!MESSAGE \r\n");
      writer.write("\r\n");
  
    }
docs: Writes "This is not a makefile" warning.
  
  @param writer
  Writer writer
  @param projectName
  String project name
  @param targtype
  String target type
  @throws IOException
  if error writing project