1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-19 14:15:50 +02:00

bug 149117 - remove prints to stdout from the PropertyFileProvider

This commit is contained in:
David Dykstal 2006-08-11 21:58:55 +00:00
parent d80367e6d8
commit 1f855d1fb2

View file

@ -252,7 +252,7 @@ public class PropertyFileProvider implements IRSEPersistenceProvider {
* @param monitor The progress monitor. * @param monitor The progress monitor.
*/ */
private void writeProperties(Properties properties, String header, IFile file) { private void writeProperties(Properties properties, String header, IFile file) {
System.out.println("writing "+file.getFullPath()+"..."); // System.out.println("writing "+file.getFullPath()+"...");
ByteArrayOutputStream outStream = new ByteArrayOutputStream(500); ByteArrayOutputStream outStream = new ByteArrayOutputStream(500);
PrintWriter out = new PrintWriter(outStream); PrintWriter out = new PrintWriter(outStream);
out.println("# " + header); out.println("# " + header);
@ -263,11 +263,11 @@ public class PropertyFileProvider implements IRSEPersistenceProvider {
String key = (String) z.next(); String key = (String) z.next();
String value = (String)map.get(key); String value = (String)map.get(key);
String keyvalue = key + "=" + escapeValue(value); String keyvalue = key + "=" + escapeValue(value);
System.out.println("writing "+keyvalue); // System.out.println("writing "+keyvalue);
out.println(keyvalue); // out.println(keyvalue);
} }
out.close(); out.close();
System.out.println("...wrote "+file.getFullPath()); // System.out.println("...wrote "+file.getFullPath());
ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray());
try { try {
if (!file.exists()) { if (!file.exists()) {