From 04acd37f1ddb7da05a366a84d176dd865577d2a7 Mon Sep 17 00:00:00 2001 From: Gun Kim Date: Tue, 27 Nov 2012 10:19:40 +0900 Subject: [PATCH] [Title] fixed bug : cannot find delta, if project does not exist below workspace. [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: Ic5e805ed38e3535914f6e07b32414a2d46fb6b4f --- org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java b/org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java index 90dd759..c890904 100644 --- a/org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java +++ b/org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java @@ -139,11 +139,16 @@ public class RdsDeltaDetector { * @return List */ public List getDelta(ElementTree tree, IPath subTreePath) { + String projectPath = ""; if ( oldTree == null) { return null; } if ( subTreePath == null ) { subTreePath = project.getFullPath(); + projectPath = project.getLocation().toString(); + } + else { + projectPath = subTreePath.toString(); } if ( tree == null) { @@ -154,8 +159,7 @@ public class RdsDeltaDetector { } DeltaDataTree currentDelta = oldTree.getDataTree().forwardDeltaWith(tree.getDataTree(), ResourceComparator.getBuildComparator()); - String workspacePath = ((Workspace)project.getWorkspace()).getRoot().getLocation().toString(); - return getDelta(new ArrayList(), currentDelta.findNodeAt(subTreePath), workspacePath + subTreePath.toString()); + return getDelta(new ArrayList(), currentDelta.findNodeAt(subTreePath), projectPath); } /** -- 2.7.4