OSDN Git Service

AI 146771: am: CL 146770 ADT #1797369 fix error "ant windows: com.android.ant.SetupTa...
authorRaphael Moll <>
Sat, 18 Apr 2009 18:56:49 +0000 (11:56 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Sat, 18 Apr 2009 18:56:49 +0000 (11:56 -0700)
  The path in local.properties should be double-backslashed.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146771

sdkmanager/libs/sdklib/src/com/android/sdklib/project/ProjectProperties.java

index 69a16be..f9ae583 100644 (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