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:
committed by
The Android Open Source Project
parent
bcc0b044fd
commit
546c9c9d41
@@ -241,7 +241,9 @@ public final class ProjectProperties {
|
|||||||
if (comment != null) {
|
if (comment != null) {
|
||||||
writer.write(comment);
|
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
|
// close the file to flush
|
||||||
|
|||||||
Reference in New Issue
Block a user