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

The path in local.properties should be double-backslashed.
  Original author: raphael
  Merged from: //branches/cupcake/...
  Original author: android-build

Automated import of CL 146836
This commit is contained in:
Raphael Moll
2009-04-18 23:09:36 -07:00
committed by The Android Open Source Project
parent afb3dbd5c0
commit 566eb7b82b

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