AI 146770: ADT #1797369 fix error "ant windows: com.android.ant.SetupTask cannot be found"

The path in local.properties should be double-backslashed.
  BUG=1797369

Automated import of CL 146770
This commit is contained in:
Raphael Moll
2009-04-17 14:01:49 -07:00
committed by The Android Open Source Project
parent bcc0b044fd
commit 546c9c9d41

View File

@@ -241,7 +241,9 @@ public final class ProjectProperties {
if (comment != null) {
writer.write(comment);
}
writer.write(String.format("%s=%s\n", entry.getKey(), entry.getValue()));
String value = entry.getValue();
value = value.replaceAll("\\\\", "\\\\\\\\");
writer.write(String.format("%s=%s\n", entry.getKey(), value));
}
// close the file to flush