From 77d133c10b3024366c43ec24431aaba18de86c39 Mon Sep 17 00:00:00 2001 From: Gun Kim Date: Fri, 12 Jul 2013 15:26:49 +0900 Subject: [PATCH] [Title] fixed the bug that does not contain remotePath in delta list [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I12707dd8c099719698d574401500e39929f216eb Conflicts: org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java --- org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java b/org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java index b09dcda..030766a 100644 --- a/org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java +++ b/org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java @@ -131,10 +131,12 @@ public abstract class RdsDeployer implements Closeable { String interestRemotePath = ""; String interestFullPath = ""; if ( isDirectory(interest.getFullPath()) ) { + // If the file exists, a type of delta is DeltaResourceInfo.TYPE_ADD or DeltaResourceInfo.TYPE_MODIFY if ( file.exists() ) { interestFullPath = interest.getFullPath(); interestRemotePath = interest.getRemotePath(); } + // If the file does not exist, a type of delta is DeltaResourceInfo.TYPE_DELETE else { interestFullPath = interest.getFullPath().substring(0,interest.getFullPath().length()-1 ); interestRemotePath = interest.getRemotePath().substring(0,interest.getRemotePath().length()-1 ); @@ -180,8 +182,8 @@ public abstract class RdsDeployer implements Closeable { } protected void partialInstall( List deltaInfoList ) throws CoreException { - String strProjectPath = project.getLocation().toString(); String strRemotePath = null; + String strProjectPath = project.getLocation().toString(); String strRemoteAbsolutePath = null; String command = null; DeltaResourceInfo interestNode = null; @@ -259,6 +261,9 @@ public abstract class RdsDeployer implements Closeable { continue; } + strRemotePath = getRemotePathOfDelta(interestNode, strProjectPath, node); + + node.setRemotePath(strRemotePath); delta.add(node); } -- 2.7.4