--- /dev/null
+package org.tizen.cli.exec;\r
+\r
+public interface ILaunchOptions\r
+{\r
+ \r
+ /**\r
+ * <p>\r
+ * Description for target widget id\r
+ * \r
+ * This is printed out in usage\r
+ * </p>\r
+ * \r
+ * @see #OPT_WIDGETID\r
+ */\r
+ String DESC_WIDGETID = "Command is performed of running widget kill in target, widget id is user written id in config.xml";\r
+\r
+ /**\r
+ * <p>\r
+ * Option for target widget file\r
+ * </p>\r
+ */\r
+ String OPT_WIDGETFILE = "widget";\r
+\r
+ /**\r
+ * <p>\r
+ * Description for target widget file\r
+ * \r
+ * This is printed out in usage\r
+ * </p>\r
+ * \r
+ * @see #OPT_WIDGETFILE\r
+ */\r
+ String DESC_WIDGETFILE = "Command is performed of widget file install in target";\r
+\r
+ /**\r
+ * <p>\r
+ * Option for target widget id\r
+ * </p>\r
+ */\r
+ String OPT_WIDGETID = "id";\r
+\r
+ /**\r
+ * <p>\r
+ * Option for project name\r
+ * </p>\r
+ */\r
+ String OPT_NAME = "name";\r
+\r
+ /**\r
+ * <p>\r
+ * Description for project name\r
+ * \r
+ * This is printed out in usage\r
+ * </p>\r
+ * \r
+ * @see #OPT_WIDGETFILE\r
+ */\r
+ String DESC_NAME = "generation project name";\r
+\r
+ /**\r
+ * <p>\r
+ * Option for project name\r
+ * </p>\r
+ */\r
+ String OPT_PATH = "path";\r
+\r
+ /**\r
+ * <p>\r
+ * Description for project name\r
+ * \r
+ * This is printed out in usage\r
+ * </p>\r
+ * \r
+ * @see #OPT_WIDGETFILE\r
+ */\r
+ String DESC_PATH = "generation project path";\r
+\r
+ \r
+ /**\r
+ * <p>\r
+ * Option for include file pattern\r
+ * </p>\r
+ */\r
+ String OPT_INCLUDE = "include";\r
+ \r
+ /**\r
+ * <p>\r
+ * Description for include file pattern option\r
+ * \r
+ * It is printed out in usage\r
+ * </p>\r
+ */\r
+ String DESC_INCLUDE = "file name pattern to include";\r
+ \r
+ /**\r
+ * <p>\r
+ * Option for exclude file pattern\r
+ * </p>\r
+ */\r
+ String OPT_EXCLUDE = "exclude";\r
+ \r
+ /**\r
+ * <p>\r
+ * Description for exclude file pattern option\r
+ * \r
+ * It is printed out in usage\r
+ * </p>\r
+ */\r
+ String DESC_EXCLUDE = "file name pattern to exclude";\r
+ \r
+ /**\r
+ * <p>\r
+ * Option for no check of validation\r
+ * </p>\r
+ */\r
+ String OPT_NOCHECK = "nocheck";\r
+ \r
+ /**\r
+ * <p>\r
+ * Description for no check option\r
+ * \r
+ * It is printed out in usage\r
+ * </p>\r
+ */\r
+ String DESC_NOCHECK = "skip validation check";\r
+ \r
+ /**\r
+ * <p>\r
+ * Option for over-writing of output file\r
+ * </p>\r
+ */\r
+ String OPT_OVERWRITE = "overwrite";\r
+ \r
+ /**\r
+ * <p>\r
+ * Description for overwrite option\r
+ * \r
+ * It is printed out in usage\r
+ * </p>\r
+ */\r
+ String DESC_OVERWRITE = "overwrite output file if it exists";\r
+}\r
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
+import org.tizen.cli.exec.ILaunchOptions;
import org.tizen.cli.exec.WRTLauncher;
import org.tizen.common.core.command.Executor;
import org.tizen.common.core.command.Prompter;
public class
Main
extends WRTLauncher
+implements ILaunchOptions
{
- /**
- * <p>
- * Option for target widget file
- * </p>
- */
- protected static final String OPT_WIDGETFILE = "widget";
-
- /**
- * <p>
- * Description for target widget file
- *
- * This is printed out in usage
- * </p>
- *
- * @see #OPT_WIDGETFILE
- */
- protected static final String DESC_WIDGETFILE = "Command is performed of widget file install in target";
-
- /**
- * <p>
- * Option for target widget id
- * </p>
- */
- protected static final String OPT_WIDGETID = "id";
/**
* <p>
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
import org.tizen.cli.exec.AbstractLauncher;
+import org.tizen.cli.exec.ILaunchOptions;
import org.tizen.common.core.command.Prompter;
import org.tizen.common.core.command.prompter.ChoiceOption;
import org.tizen.common.core.command.prompter.Option;
*/
public class
Main
-extends AbstractLauncher {
+extends AbstractLauncher
+implements ILaunchOptions
+{
- /**
- * <p>
- * Option for project name
- * </p>
- */
- protected static final String OPT_NAME = "name";
-
- /**
- * <p>
- * Description for project name
- *
- * This is printed out in usage
- * </p>
- *
- * @see #OPT_WIDGETFILE
- */
- protected static final String DESC_NAME = "generation project name";
-
- /**
- * <p>
- * Option for project name
- * </p>
- */
- protected static final String OPT_PATH = "path";
-
- /**
- * <p>
- * Description for project name
- *
- * This is printed out in usage
- * </p>
- *
- * @see #OPT_WIDGETFILE
- */
- protected static final String DESC_PATH = "generation project path";
/**
* Entry point for cli main
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
+import org.tizen.cli.exec.ILaunchOptions;
import org.tizen.cli.exec.WRTLauncher;
import org.tizen.common.core.command.Executor;
import org.tizen.common.core.command.Prompter;
public class
Main
extends WRTLauncher
+implements ILaunchOptions
{
- /**
- * <p>
- * Option for target widget file
- * </p>
- */
- protected static final String OPT_WIDGETFILE = "widget";
-
- /**
- * <p>
- * Description for target widget file
- *
- * This is printed out in usage
- * </p>
- *
- * @see #OPT_WIDGETFILE
- */
- protected static final String DESC_WIDGETFILE = "Command is performed of widget file install in target";
-
- /**
- * <p>
- * Option for target widget id
- * </p>
- */
- protected static final String OPT_WIDGETID = "id";
/**
* <p>
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
+import org.tizen.cli.exec.ILaunchOptions;
import org.tizen.cli.exec.WRTLauncher;
import org.tizen.common.core.command.Executor;
import org.tizen.common.core.command.Prompter;
public class
Main
extends WRTLauncher
+implements ILaunchOptions
{
/**
* <p>
- * Option for target widget file
- * </p>
- */
- protected static final String OPT_WIDGETFILE = "widget";
-
- /**
- * <p>
- * Description for target widget file
- *
- * This is printed out in usage
- * </p>
- *
- * @see #OPT_WIDGETFILE
- */
- protected static final String DESC_WIDGETFILE = "Command is performed of widget file install in target";
-
- /**
- * <p>
- * Option for target widget id
- * </p>
- */
- protected static final String OPT_WIDGETID = "id";
-
- /**
- * <p>
* Description for target widget id
*
* This is printed out in usage
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
import org.tizen.cli.exec.AbstractLauncher;
+import org.tizen.cli.exec.ILaunchOptions;
import org.tizen.common.core.command.Prompter;
import org.tizen.common.core.command.prompter.ChoiceOption;
import org.tizen.common.core.command.prompter.Option;
public class
Main
extends AbstractLauncher
+implements ILaunchOptions
{
/**
* <p>
- * Option for include file pattern
- * </p>
- */
- protected static final String OPT_INCLUDE = "include";
-
- /**
- * <p>
- * Description for include file pattern option
- *
- * This is printed out in usage
- * </p>
- *
- * @see #OPT_INCLUDE
- */
- protected static final String DESC_INCLUDE = "file name pattern to include";
-
- /**
- * <p>
- * Option for exclude file pattern
- * </p>
- */
- protected static final String OPT_EXCLUDE = "exclude";
-
- /**
- * <p>
- * Description for exclude file pattern option
- *
- * This is printed out in usage
- * </p>
- *
- * @see #OPT_EXCLUDE
- */
- protected static final String DESC_EXCLUDE = "file name pattern to exclude";
-
- /**
- * <p>
- * Option for no check of validation
- * </p>
- */
- protected static final String OPT_NOCHECK = "nocheck";
-
- /**
- * <p>
- * Description for no check option
- *
- * This is printed out in usage
- * </p>
- *
- * @see #OPT_NOCHECK
- */
- protected static final String DESC_NOCHECK = "skip validation check";
-
- /**
- * <p>
* Option for profile with/without profiles file
*
* Examples are following
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
+import org.tizen.cli.exec.ILaunchOptions;
import org.tizen.cli.exec.WRTLauncher;
import org.tizen.common.core.command.Executor;
import org.tizen.common.core.command.Prompter;
public class
Main
extends WRTLauncher
+implements ILaunchOptions
{
/**
* <p>
- * Option for target widget id
- * </p>
- */
- protected static final String OPT_WIDGETID = "id";
-
- /**
- * <p>
* Description for target widget id
*
* This is printed out in usage
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
import org.tizen.cli.exec.AbstractLauncher;
+import org.tizen.cli.exec.ILaunchOptions;
import org.tizen.common.core.command.Executor;
import org.tizen.common.core.command.Prompter;
import org.tizen.common.core.command.prompter.ChoiceOption;
public class
Main
extends AbstractLauncher
+implements ILaunchOptions
{
- /**
- * <p>
- * Option for include file pattern
- * </p>
- */
- protected static final String OPT_INCLUDE = "include";
-
- /**
- * <p>
- * Description for include file pattern option
- *
- * It is printed out in usage
- * </p>
- */
- protected static final String DESC_INCLUDE = "file name pattern to include";
-
- /**
- * <p>
- * Option for exclude file pattern
- * </p>
- */
- protected static final String OPT_EXCLUDE = "exclude";
-
- /**
- * <p>
- * Description for exclude file pattern option
- *
- * It is printed out in usage
- * </p>
- */
- protected static final String DESC_EXCLUDE = "file name pattern to exclude";
-
- /**
- * <p>
- * Option for no check of validation
- * </p>
- */
- protected static final String OPT_NOCHECK = "nocheck";
-
- /**
- * <p>
- * Description for no check option
- *
- * It is printed out in usage
- * </p>
- */
- protected static final String DESC_NOCHECK = "skip validation check";
-
- /**
- * <p>
- * Option for over-writing of output file
- * </p>
- */
- protected static final String OPT_OVERWRITE = "overwrite";
-
- /**
- * <p>
- * Description for overwrite option
- *
- * It is printed out in usage
- * </p>
- */
- protected static final String DESC_OVERWRITE = "overwrite output file if it exists";
+
/**
* Entry point for cli main