CLI: Fixed bug in web-gen 39/18439/2
authorTaeyoung Son <taeyoung2.son@samsung.com>
Mon, 24 Mar 2014 06:36:07 +0000 (15:36 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Mon, 24 Mar 2014 06:38:06 +0000 (15:38 +0900)
Fixed bug in web-gen. added org.eclipse.equinox.common plugin for usin ProjectValidationUtil.

Change-Id: I35185ab5e7ce32e4ab9f41682d66c9d04a57c7b6
Signed-off-by: Taeyoung Son <taeyoung2.son@samsung.com>
org.tizen.cli/src/org/tizen/cli/exec/gen/Main.java
package/build.linux

index ce53fc6..76811e7 100644 (file)
@@ -96,11 +96,12 @@ extends AbstractLauncher
                String name = cmdLine.getOptionValue( OPT_NAME );
                String path = cmdLine.getOptionValue( OPT_PATH );
 
-        if (!ProjectValidationUtil.isValidNameForAppID(name)) {
-            prompter.error(Messages.getString("Web.ERROR_MSG_INVALID_PROJECT_NAME"));
-            return;
+        if (!StringUtil.isEmpty(name)) {
+            if (!ProjectValidationUtil.isValidNameForAppID(name)) {
+                prompter.error(Messages.getString("Web.ERROR_MSG_INVALID_PROJECT_NAME"));
+                return;
+            }
         }
-
                logger.trace( "set user input options" );
                command.setProjectName( name );
                command.setTargetPath( new File(StringUtil.isEmpty(path) ? "." : path).getAbsolutePath() );
index 5710d65..b328189 100755 (executable)
@@ -48,6 +48,7 @@ build()
     mkdir -p $LIB      
 
     SRC_LIST="
+    org.eclipse.equinox.common_*
     org.eclipse.osgi_*
     org.tizen.common.project_*
     org.tizen.web.common_*