} else {
throw new BuildException(null);
}
- Assert.notNull(cwd, "Current Working Directory should not be NULL.");
}
private void deleteOutput() {
* Add UI framework builder to buildProcess.
*
* @param isExclude
- * If set true, Tizen web UI framework library will be excluded output path. Application will be used
+ * If set true, Tizen web UI framework library will be excluded output path. Application will use
* target's Tizen web UI framework library.
* @param useMin
* If 'isExclude' parameter set true and this parameter set true, application will be used target's
log.trace("parseArgument CLP:{}\tCommand:{}", this, current);
super.parseArgument(args);
} catch (CmdLineException e) {
+ log.trace("CmdLineException occurred.\n{}", e.getMessage());
/*
* To show SubCommand information , make a information for SubCommand.
*/
if (this == calleeParser) {
log.trace("Same CmdLineParser");
log.trace("args count: {}", args.length);
- log.trace("CmdLineException occurred.\n{}", e.getMessage());
// process parsing subcommand infos
log.trace("make sub command reference infos.");
try {
} catch (CmdLineException e) {
if (args.length == 0 || helpOpt) {
printDefaultCommandUsage(errorWriter);
- } else if (args.length == 1) {
+ } else if (args.length == 3) {
/*
* Check if command name is correct and print proper message
*/
printSubCommandOrArgUsage(command, errorWriter);
}
- } else if (args.length > 1) {
+ } else if (args.length > 3) {
errorWriter.println();
errorWriter.println("Argument is not valid!");
errorWriter.println(MessageFormat.format("Error: {0}", e.getMessage()));
import java.util.ArrayList;\r
import java.util.List;\r
\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
import org.tizen.common.builder.BuildProcess;\r
import org.tizen.common.builder.Builder;\r
import org.tizen.common.builder.Resource;\r
* \r
*/\r
public class BuildWebCLICommand extends AbstractSubCommand<BuildWebParameter> {\r
+ private Logger log = LoggerFactory.getLogger(getClass());\r
\r
// file filter. If you want to exclude a directory, append '/*'\r
private static final String[] DEFAULT_EXCLUDES = { ".build" + File.separator + "*", ".project",\r
@Override\r
protected BuildWebParameter call() {\r
log.trace("BuildWeb command started ...");\r
- log.info("Build started...");\r
+ log.info("-----------------------------------------------------");\r
+ log.info("Starting Tizen project build:");\r
+ log.info("-----------------------------------------------------");\r
initExcludes();\r
if (log.isTraceEnabled()) {\r
log.trace("BuildData: {}", webAppBuildData);\r