added '--output' and '-out' to auto completion list.
fixed getting current working path as folder including CLI library.
Change-Id: I39b4e18c4c37e2acd1813382a891ff8c8f217f3f
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
{ "run", "--target" }, { "debug", "--target" } };
public static String[][] optionsForSub = {
- { "project", "-t --type -n --name" },
+ { "project", "-t --type -n --name -out --output" },
{ "security-profile", "--kind --active" },
{ "security-profile-item", "--kind --cert --passwd --ca --rootca" },
{ "certificate",
CreateWebProjectCommand webCommand = new CreateWebProjectCommand();
webCommand.setAppType(appType);
webCommand.setProjectName(projectName);
+ webCommand.setOutputName(currentWorkspacePath);
if(outputName != null)
- webCommand.setOutputName(outputName);
+ webCommand.setOutputName(outputName);
webCommand.runCommand();
break;
default:
private TizenAppType appType;
private String projectName;
- private String outputName = System.getProperty("user.dir");
+ private String outputName = "";
private static TizenAppTemplate tizenAppTemplate;
{
String jarPath = urlPath.replaceAll("file:", "").substring(0, urlPath.lastIndexOf(WebConstant.BUILTIN_TEMPLATE_LIBRARIES_FOLDER) - 7);
- System.out.println("jar path = " + jarPath);
-
String destDirPath = jarPath + "_dir";
// make it if the destination directory is not created.