Refined usage labels and changed to 'Tizen C++'
authorkh5325.kim <kh5325.kim@samsung.com>
Mon, 18 Mar 2013 08:58:46 +0000 (17:58 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Mon, 18 Mar 2013 08:58:46 +0000 (17:58 +0900)
org.tizen.cli/src/org/tizen/cli/exec/AbstractLauncher.java
org.tizen.cli/src/org/tizen/cli/exec/gen/NativeMain.java

index 8c0b6c8..55d84cd 100755 (executable)
@@ -111,7 +111,7 @@ AbstractLauncher
         * 
         * @see #OPT_LOG
         */
-       protected static final String DESC_LOG = "Specify log category( ex - error, warn, info, debug, trace )";
+       protected static final String DESC_LOG = "Specify log category (error | warn | info | debug | trace)";
        
        /**
         * <p>
index 25ae7a6..70ad50f 100644 (file)
@@ -51,16 +51,17 @@ public class NativeMain extends AbstractLauncher {
     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
@@ -115,7 +116,7 @@ public class NativeMain extends AbstractLauncher {
             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);
         }