OSDN Git Service

AI 146770: ADT #1797369 fix error "ant windows: com.android.ant.SetupTask cannot...
authorRaphael Moll <>
Fri, 17 Apr 2009 21:01:49 +0000 (14:01 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Fri, 17 Apr 2009 21:01:49 +0000 (14:01 -0700)
  The path in local.properties should be double-backslashed.
  BUG=1797369

Automated import of CL 146770

tools/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