private static final String OPTION_PROJECTNAME = "name";
private static final String OPTION_SAMPLE = "sample";
- private static final String DESC_PROJECTPATH = "Path of the project to be created. (Default: {current directory}/{project name})";
- private static final String DESC_PROJECTNAME = "Name of the project to be created. (Default: sample type)";
- private static final String DESC_SAMPLE = "Type of the sample. (Default: empty)\n\t\t\tempty: empty application\n\t\t\tform: form based application\n\t\t\tshared: shared library\n\t\t\tstatic: static library\n\t\t\tservice: service application\n\t\t\ttab: tab based application";
+ private static final String DESC_PROJECTPATH = "Specify a path of the project to be created (Default: <current directory>/<project name>)";
+ private static final String DESC_PROJECTNAME = "Specify a name of the project to be created (Default: <sample type>)";
+ private static final String DESC_SAMPLE = "Specify a type of the sample (Default: 'empty')\n\t\t\t empty: empty application\n\t\t\t form: form-based application\n\t\t\t shared: shared library\n\t\t\t static: static library\n\t\t\t service: service application\n\t\t\t tab: tab-based application";
- private static final String SAMPLE_EMPTYPROJECT = "native/cpp/Template/Tizen Native/Empty Application/empty";
- private static final String SAMPLE_FORM = "native/cpp/Template/Tizen Native/Form-based Application/formapp";
- private static final String SAMPLE_SHARED = "native/cpp/Template/Tizen Native/Library/sharedlibrary";
- private static final String SAMPLE_STATIC = "native/cpp/Template/Tizen Native/Library/staticlibrary";
- private static final String SAMPLE_SERVICE = "native/cpp/Template/Tizen Native/Service Application/serviceapp";
- private static final String SAMPLE_TAB = "native/cpp/Template/Tizen Native/Tab-based Application/tabapp";
+ private static final String TEMPLATE_DIRECTORY = "native/cpp/Template/Tizen Native";
+ private static final String SAMPLE_EMPTYPROJECT = TEMPLATE_DIRECTORY + "/Empty Application/empty";
+ private static final String SAMPLE_FORM = TEMPLATE_DIRECTORY + "/Form-based Application/formapp";
+ private static final String SAMPLE_SHARED = TEMPLATE_DIRECTORY + "/Library/sharedlibrary";
+ private static final String SAMPLE_STATIC = TEMPLATE_DIRECTORY + "/Library/staticlibrary";
+ private static final String SAMPLE_SERVICE = TEMPLATE_DIRECTORY + "/Service Application/serviceapp";
+ private static final String SAMPLE_TAB = TEMPLATE_DIRECTORY + "/Tab-based Application/tabapp";
/**
* Entry point for cli main
sampleDir = FileUtil.appendPath(samplePath, SAMPLE_TAB);
}
else {
- logger.error("Sample " + sampleDir + " is not supported. Empty project is being created");
+ logger.error("Sample " + sampleDir + " is not supported. Empty project is being created.");
sampleName = "empty";
sampleDir = FileUtil.appendPath(samplePath, SAMPLE_EMPTYPROJECT);
}