CLI: can use relative project path when creating web/native projects 01/13901/1
authorshingil.kang <shingil.kang@samsung.com>
Wed, 18 Dec 2013 04:49:07 +0000 (13:49 +0900)
committershingil.kang <shingil.kang@samsung.com>
Wed, 18 Dec 2013 04:49:07 +0000 (13:49 +0900)
Change-Id: Id9a6bc4d82cda2beb6ea6e1ade90a63eeb0a55bc
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
org.tizen.ncli.ide/src/org/tizen/ncli/ide/shell/CreateNativeProjectCLI.java
org.tizen.ncli.ide/src/org/tizen/ncli/ide/shell/CreateWebProjectCLI.java

index 9cdd27f..46b32f3 100644 (file)
@@ -61,8 +61,7 @@ public class CreateNativeProjectCLI extends AbstractCLI
         // set output directory
         try
         {
-            File outputDirectory = (workingDir != null ? workingDir : currentWorkspacePath);
-            nativeCommand.setOutputName(outputDirectory.getCanonicalPath() + File.separatorChar + nativeCommand.getProjectName());
+            nativeCommand.setOutputName(getRealWorkingPath().getCanonicalPath() + File.separatorChar + nativeCommand.getProjectName());
         } catch (IOException e)
         {
             log.error(TizenCLIMessages.CR_CANNOT_CREATE_OUTDIR);
index c861fa9..5cc4741 100644 (file)
@@ -70,8 +70,7 @@ public class CreateWebProjectCLI extends AbstractCLI
         // set output directory
         try
         {
-            File outputDirectory = (workingDir != null ? workingDir : currentWorkspacePath);
-            webCommand.setOutputName(outputDirectory.getCanonicalPath() + File.separatorChar + webCommand.getProjectName());
+            webCommand.setOutputName(getRealWorkingPath().getCanonicalPath() + File.separatorChar + webCommand.getProjectName());
         } catch (IOException e)
         {
             log.error(TizenCLIMessages.CR_CANNOT_CREATE_OUTDIR);