Permalink
Browse files

FIX: Use OS-independent path for adb

  • Loading branch information...
1 parent 4662a55 commit cc6132d9cf67a648456623dbe6d52e4b2a0abf45 @koying koying committed Apr 29, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/adbconnect/Activator.java
@@ -18,6 +18,8 @@
******************************************************************************/
package adbconnect;
+import java.io.File;
+
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;
@@ -96,6 +98,6 @@ public static String getDevicePortNumber() {
public static String getPathToAdb() {
IPreferenceStore ps = new ScopedPreferenceStore(InstanceScope.INSTANCE,
"com.android.ide.eclipse.adt");
- return ps.getString("com.android.ide.eclipse.adt.sdk") + "/platform-tools/";
+ return ps.getString("com.android.ide.eclipse.adt.sdk") + File.separator + "platform-tools" + File.separator;
}
}

0 comments on commit cc6132d

Please sign in to comment.