@Deprecated public void write(String outputFile,boolean useRelativePaths,String relativeBase) throws IOException {
  PrintWriter writer=UTF8.printWriter(outputFile);
  try {
    writer.println(JAR_FILES_KEY);
    for (    String jarFile : analysisTargets) {
      if (useRelativePaths) {
        jarFile=convertToRelative(jarFile,relativeBase);
      }
      writer.println(jarFile);
    }
    writer.println(SRC_DIRS_KEY);
    for (    String srcDir : srcDirList) {
      if (useRelativePaths) {
        srcDir=convertToRelative(srcDir,relativeBase);
      }
      writer.println(srcDir);
    }
    writer.println(AUX_CLASSPATH_ENTRIES_KEY);
    for (    String auxClasspathEntry : auxClasspathEntryList) {
      if (useRelativePaths) {
        auxClasspathEntry=convertToRelative(auxClasspathEntry,relativeBase);
      }
      writer.println(auxClasspathEntry);
    }
    if (useRelativePaths) {
      writer.println(OPTIONS_KEY);
      writer.println(RELATIVE_PATHS + "=true");
    }
  }
  finally {
    writer.close();
  }
  isModified=false;
}

@ Deprecated public void write ( String outputFile , boolean useRelativePaths , String relativeBase ) throws IOException { PrintWriter writer = UTF8 . printWriter ( outputFile ) ; try { writer . println ( JAR_FILES_KEY ) ; for ( String jarFile : analysisTargets ) { if ( useRelativePaths ) { jarFile = convertToRelative ( jarFile , relativeBase ) ; } writer . println ( jarFile ) ; } writer . println ( SRC_DIRS_KEY ) ; for ( String srcDir : srcDirList ) { if ( useRelativePaths ) { srcDir = convertToRelative ( srcDir , relativeBase ) ; } writer . println ( srcDir ) ; } writer . println ( AUX_CLASSPATH_ENTRIES_KEY ) ; for ( String auxClasspathEntry : auxClasspathEntryList ) { if ( useRelativePaths ) { auxClasspathEntry = convertToRelative ( auxClasspathEntry , relativeBase ) ; } writer . println ( auxClasspathEntry ) ; } if ( useRelativePaths ) { writer . println ( OPTIONS_KEY ) ; writer . println ( RELATIVE_PATHS + "=true" ) ; } } finally { writer . close ( ) ; } isModified = false ; }
save the project to an output file .
