From: hyunsik.noh Date: Thu, 12 Dec 2013 02:09:15 +0000 (+0900) Subject: CLI: Move data directory for build-native X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F13669%2F2;p=sdk%2Ftools%2Fcli.git CLI: Move data directory for build-native Change-Id: I6e7f4f910cc1d04354a543343e5c3dfd6c6a1df9 Signed-off-by: hyunsik.noh --- 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()) {