LAUNCH: Modified debug source container for supporting windows
authordonghyuk,yang <donghyuk.yang@samsung.com>
Sun, 27 Apr 2014 16:11:44 +0000 (01:11 +0900)
committerdonghyuk,yang <donghyuk.yang@samsung.com>
Sun, 27 Apr 2014 16:11:44 +0000 (01:11 +0900)
Source path mapping should be changed for supporting windows.

Change-Id: Ia0d11a9d4dd8eb25b39d5f095bf06940ca00b97d
Signed-off-by: donghyuk,yang <donghyuk.yang@samsung.com>
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/shortcut/PlatformProjectCommonLaunchShortcut.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/pkg/commander/rpm/RpmCommanderRootstrap.java

index 231baf8..61dd1bf 100644 (file)
@@ -227,7 +227,7 @@ abstract public class PlatformProjectCommonLaunchShortcut extends CApplicationLa
     protected void setSourceContainer(IProject project,
             ILaunchConfigurationWorkingCopy configuration) {
         PlatformRootstrap rootstrap = target.getRootstrap();
-        String basePath = rootstrap.getPath().toOSString();
+        String basePath = rootstrap.getPath().toString();
         String rootstrapPath = "";
         if (OSChecker.isWindows()) {
             rootstrapPath = basePath;
@@ -252,7 +252,12 @@ abstract public class PlatformProjectCommonLaunchShortcut extends CApplicationLa
                 PLATFORM_SOURCE_CONTAINER);
         MapEntrySourceContainer entry2 = new MapEntrySourceContainer();
         backend = "/usr";
-        local = new Path(rootstrapPath).append("usr").toOSString();
+        if (OSChecker.isWindows()) {
+               String syncRootstrap = RootstrapUtil.getUserSyncRootstrapPath(rootstrap.getId());
+               local = new Path(syncRootstrap).append("usr").toString();
+        } else {               
+               local = new Path(rootstrapPath).append("usr").toString();
+        }
 
         entry2.setBackendPath(new Path(backend));
         entry2.setLocalPath(new Path(local));
index 3c4a66e..7ff4cbf 100644 (file)
@@ -219,7 +219,7 @@ public class RpmCommanderRootstrap extends RpmCommanderCommon {
     public ICommandStatus getMd5Checksum(String path) {
         String command = String.format("md5sum %s", path);
         ICommandStatus status;
-        status = RootstrapCommandLauncher.execute(command, rootPath.toString(), null, null);
+        status = execute(command, null, null);
         if (status.isOk()) {
             printResultLog(String.format("[RDS] Checked checksum: %s", path));
         }