[Title] sync project creation logic between eclipse wizard and cli wizard
authorho.namkoong <ho.namkoong@samsung.com>
Fri, 4 Jan 2013 07:29:00 +0000 (16:29 +0900)
committerho.namkoong <ho.namkoong@samsung.com>
Fri, 4 Jan 2013 07:29:00 +0000 (16:29 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#] 7888
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I5043761cdc73a7b318ff959af81a5ce701263ba3

org.tizen.cli/META-INF/MANIFEST.MF
org.tizen.cli/src/org/tizen/cli/exec/gen/NativeMain.java

index baeb8bf..32792f4 100755 (executable)
@@ -16,5 +16,11 @@ Require-Bundle: org.tizen.web.common,
 Bundle-ClassPath: .,
  lib/ant.jar,
  lib/commons-cli-1.2.jar
-Import-Package: org.tizen.nativecommon.templateengine,
- org.tizen.nativecommon.templateengine.model
+Import-Package: org.tizen.nativecommon,
+ org.tizen.nativecommon.exception,
+ org.tizen.nativecommon.templateengine,
+ org.tizen.nativecommon.templateengine.build,
+ org.tizen.nativecommon.templateengine.build.model,
+ org.tizen.nativecommon.templateengine.model,
+ org.tizen.nativecommon.templateengine.process,
+ org.tizen.nativecommon.templateengine.util
index 6ff78fd..f2b9fc4 100644 (file)
@@ -41,7 +41,6 @@ import org.tizen.common.core.command.prompter.Option;
 import org.tizen.common.util.FileUtil;
 import org.tizen.common.util.StringUtil;
 import org.tizen.nativecommon.templateengine.TizenTemplateEngine;
-import org.tizen.nativecommon.templateengine.TizenTemplateEngine.WizardMode;
 import org.tizen.nativecommon.templateengine.model.TizenTemplate;
 
 public class NativeMain extends AbstractLauncher {
@@ -139,7 +138,7 @@ public class NativeMain extends AbstractLauncher {
         
         System.out.println("Create " + projectName + " project");
         TizenTemplate template = new TizenTemplate(new File(sampleDir).getAbsolutePath(), projectName, new File(targetDir).getAbsolutePath());
-        TizenTemplateEngine.createProject(template, WizardMode.CLI);
+        TizenTemplateEngine.createProject(template, new CLIProjectGenerator());
         System.out.println("Project created succcessfully in " + template.getProjectPath() + "\nTo build the project, run native-make in " + template.getProjectPath() + File.separatorChar + "CommandLineBuild");
     }