From 51c1694056ab74fcdf93b97ec658ea6631c9bd85 Mon Sep 17 00:00:00 2001 From: benfry Date: Wed, 17 Feb 2010 23:15:58 +0000 Subject: [PATCH] notes about slashes --- app/src/processing/app/tools/android/Build.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/processing/app/tools/android/Build.java b/app/src/processing/app/tools/android/Build.java index 333e50c3d..960169bc7 100644 --- a/app/src/processing/app/tools/android/Build.java +++ b/app/src/processing/app/tools/android/Build.java @@ -483,6 +483,9 @@ public class Build { void writeLocalProps(File file) { PrintWriter writer = PApplet.createWriter(file); if (Base.isWindows()) { + // Windows needs backslashes escaped, or it will also accept forward + // slashes in the build file. We're using the forward slashes since this + // path gets concatenated with a lot of others that use forwards anyway. writer.println("sdk.dir=" + Android.sdkPath.replace('\\', '/')); } else { writer.println("sdk.dir=" + Android.sdkPath);