diff options
author | Gun Kim <gune.kim@samsung.com> | 2013-03-21 13:34:56 +0900 |
---|---|---|
committer | Gun Kim <gune.kim@samsung.com> | 2013-03-21 20:14:32 +0900 |
commit | 9c1a74410ccd7d71f3a7bf4c4cd1acaf8146205e (patch) | |
tree | cb3a88e8d1f6ef452335f7cf2c9c8c50c26441c7 | |
parent | b806ff3f974c9489dd4e449e10dd443b4dcca8d4 (diff) | |
download | codecoverage-eplugin-9c1a74410ccd7d71f3a7bf4c4cd1acaf8146205e.tar.gz codecoverage-eplugin-9c1a74410ccd7d71f3a7bf4c4cd1acaf8146205e.tar.bz2 codecoverage-eplugin-9c1a74410ccd7d71f3a7bf4c4cd1acaf8146205e.zip |
[Title] applied new method that get app's installation path.
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]
Change-Id: Ia847f8807c1a5267df50bdc64118fd924bd02af8
-rw-r--r-- | org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java b/org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java index 7053d27..040ebf4 100644 --- a/org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java +++ b/org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java @@ -136,12 +136,14 @@ public class GcovHelper { } public static void downloadGcda( List<String> gcdaPathsInGcno, IPath binaryPath, IProject project, boolean isLLVM ) throws Exception{ - String targetPath = getGcdaPath(project); - IDevice currentDevice = ConnectionPlugin.getDefault().getCurrentDevice(); SyncService syncService = currentDevice.getSyncService(); String dstFile = ""; String srcFile = ""; + + String targetPath = getGcdaPath(project, currentDevice); + + try { for (String gcdaPath: gcdaPathsInGcno) { @@ -169,15 +171,9 @@ public class GcovHelper { } - static public String getGcdaPath(IProject project) { - String installPath = getPackageInstallPath(project); + private static String getGcdaPath(IProject project, IDevice device) { + String installPath = ProjectUtil.getAppDirectory(project, device); String gcdaPath = installPath + DATA_DIR; return gcdaPath; } - - static String getPackageInstallPath(IProject project) { - PackageModel packageModel = PackageModel.newInstance(project); - String installPath = packageModel.getAppInstallPath(); - return installPath; - } } |