From 635bed5afa3f44016ef687313307c89f34bff545 Mon Sep 17 00:00:00 2001 From: "hyunsik.noh" Date: Thu, 12 Dec 2013 11:09:15 +0900 Subject: [PATCH] CLI: Move data directory for build-native Change-Id: I6e7f4f910cc1d04354a543343e5c3dfd6c6a1df9 Signed-off-by: hyunsik.noh --- .../src/org/tizen/ncli/ide/subcommands/BuildNativeCLICommand.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/BuildNativeCLICommand.java b/org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/BuildNativeCLICommand.java index bf19efc..29b81d1 100644 --- a/org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/BuildNativeCLICommand.java +++ b/org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/BuildNativeCLICommand.java @@ -168,7 +168,12 @@ public class BuildNativeCLICommand extends AbstractSubCommand { if (!file.exists()) { file.mkdir(); } - dataPath = importPath + File.separator + "headless"; + String workParent = workingDir.getParent(); + if(workParent != null) { + dataPath = workParent + File.separator + "headless"; + } else { + dataPath = idePath + File.separator + "headless"; + } if(!getBuildTarget()) { log.debug(TizenCLIMessages.BN_CANNOT_CREATE_BUILD_TARGET); @@ -260,6 +265,7 @@ public class BuildNativeCLICommand extends AbstractSubCommand { if(validateOptions()) { if(makeCommand()) { String command = String.format(HEADLESS_CMD, idePath, importPath, buildPath, dataPath, targetId); + log.debug(command); progressLog.info(HostUtil.returnExecute(command)); removeDataDir(); if(isSuccessful()) { -- 2.7.4