// Path: ask-app/src/main/java/com/androidstarterkit/config/AskConfig.java
// public class AskConfig {
//   public static final String DEFAULT_ASK_APP_NAME = "ask-app";
//   public static final String DEFAULT_SAMPLE_MODULE_NAME = "ask-sample";
//   public static final String DEFAULT_REMOTE_MODULE_NAME = "ask-remote-module";
// 
//   public static final int DEVELOPMENT = 0;
//   public static final int PRODUCTION = 1;
// 
//   public static final int OUTPUT_PROD_PROJECT = 0;
//   public static final int OUTPUT_DEV_ASK_SAMPLE = 1;
// }
// 
// Path: ask-app/src/main/java/com/androidstarterkit/exception/CommandException.java
// public class CommandException extends RuntimeException {
//   public static final String ERROR_MESSAGE_PREFIX = "ask: ";
// 
//   public static final int INVALID_NO_OPTIONS = 1;
//   public static final int FILE_NOT_FOUND = 2;
//   public static final int APP_MODULE_NOT_FOUND = 3;
//   public static final int WIDGET_NOT_FOUND = 4;
//   public static final int INVALID_WIDGET = 5;
//   public static final int OPTION_NOT_FOUND = 6;
//   public static final int INVALID_MODULE = 7;
//   public static final int NOT_FOUND_ASK_JSON = 8;
// 
//   private int errCode;
// 
//   public CommandException(String message) {
//     this(0, message);
//   }
// 
//   public CommandException(int errCode) {
//     this(errCode, null);
//   }
// 
//   public CommandException(int errCode, String message) {
//     super(message);
// 
//     this.errCode = errCode;
//   }
// 
//   @Override
//   public String getMessage() {
//     if (errCode == INVALID_NO_OPTIONS) {
//       return ERROR_MESSAGE_PREFIX + "there is no options";
//     } else if (errCode == FILE_NOT_FOUND) {
//       return ERROR_MESSAGE_PREFIX + "failed to find project: " + super.getMessage();
//     } else if (errCode == APP_MODULE_NOT_FOUND) {
//       return ERROR_MESSAGE_PREFIX + "failed to find module: " + super.getMessage();
//     } else if (errCode == WIDGET_NOT_FOUND) {
//       return ERROR_MESSAGE_PREFIX + "failed to find widget: " + super.getMessage();
//     } else if (errCode == INVALID_WIDGET) {
//       return ERROR_MESSAGE_PREFIX + "there is no widgets";
//     } else if (errCode == OPTION_NOT_FOUND) {
//       return ERROR_MESSAGE_PREFIX + "failed to find option: " + super.getMessage();
//     } else if (errCode == INVALID_MODULE) {
//       return ERROR_MESSAGE_PREFIX + "failed to find module: " + super.getMessage();
//     } else if (errCode == NOT_FOUND_ASK_JSON) {
//       return ERROR_MESSAGE_PREFIX + "failed to find ask json file";
//     }
// 
//     return super.getMessage();
//   }
// 
//   public boolean shudShowHelp() {
//     return errCode == INVALID_NO_OPTIONS
//         || errCode == INVALID_WIDGET;
//   }
// }


import com.androidstarterkit.config.AskConfig;
import com.androidstarterkit.exception.CommandException;
package com.androidstarterkit;


public class Console {

  public static void log(Exception e) {
    if (e instanceof CommandException) {
      CommandException exception = (CommandException) e;

      System.out.println(e.getMessage());

// Path: ask-app/src/main/java/com/androidstarterkit/config/AskConfig.java
// public class AskConfig {
//   public static final String DEFAULT_ASK_APP_NAME = "ask-app";
//   public static final String DEFAULT_SAMPLE_MODULE_NAME = "ask-sample";
//   public static final String DEFAULT_REMOTE_MODULE_NAME = "ask-remote-module";
// 
//   public static final int DEVELOPMENT = 0;
//   public static final int PRODUCTION = 1;
// 
//   public static final int OUTPUT_PROD_PROJECT = 0;
//   public static final int OUTPUT_DEV_ASK_SAMPLE = 1;
// }
// 
// Path: ask-app/src/main/java/com/androidstarterkit/exception/CommandException.java
// public class CommandException extends RuntimeException {
//   public static final String ERROR_MESSAGE_PREFIX = "ask: ";
// 
//   public static final int INVALID_NO_OPTIONS = 1;
//   public static final int FILE_NOT_FOUND = 2;
//   public static final int APP_MODULE_NOT_FOUND = 3;
//   public static final int WIDGET_NOT_FOUND = 4;
//   public static final int INVALID_WIDGET = 5;
//   public static final int OPTION_NOT_FOUND = 6;
//   public static final int INVALID_MODULE = 7;
//   public static final int NOT_FOUND_ASK_JSON = 8;
// 
//   private int errCode;
// 
//   public CommandException(String message) {
//     this(0, message);
//   }
// 
//   public CommandException(int errCode) {
//     this(errCode, null);
//   }
// 
//   public CommandException(int errCode, String message) {
//     super(message);
// 
//     this.errCode = errCode;
//   }
// 
//   @Override
//   public String getMessage() {
//     if (errCode == INVALID_NO_OPTIONS) {
//       return ERROR_MESSAGE_PREFIX + "there is no options";
//     } else if (errCode == FILE_NOT_FOUND) {
//       return ERROR_MESSAGE_PREFIX + "failed to find project: " + super.getMessage();
//     } else if (errCode == APP_MODULE_NOT_FOUND) {
//       return ERROR_MESSAGE_PREFIX + "failed to find module: " + super.getMessage();
//     } else if (errCode == WIDGET_NOT_FOUND) {
//       return ERROR_MESSAGE_PREFIX + "failed to find widget: " + super.getMessage();
//     } else if (errCode == INVALID_WIDGET) {
//       return ERROR_MESSAGE_PREFIX + "there is no widgets";
//     } else if (errCode == OPTION_NOT_FOUND) {
//       return ERROR_MESSAGE_PREFIX + "failed to find option: " + super.getMessage();
//     } else if (errCode == INVALID_MODULE) {
//       return ERROR_MESSAGE_PREFIX + "failed to find module: " + super.getMessage();
//     } else if (errCode == NOT_FOUND_ASK_JSON) {
//       return ERROR_MESSAGE_PREFIX + "failed to find ask json file";
//     }
// 
//     return super.getMessage();
//   }
// 
//   public boolean shudShowHelp() {
//     return errCode == INVALID_NO_OPTIONS
//         || errCode == INVALID_WIDGET;
//   }
// }


// Path: ask-app/src/main/java/com/androidstarterkit/Console.java
import com.androidstarterkit.config.AskConfig;
import com.androidstarterkit.exception.CommandException;

package com.androidstarterkit;


public class Console {

  public static void log(Exception e) {
    if (e instanceof CommandException) {
      CommandException exception = (CommandException) e;

      System.out.println(e.getMessage());

      if (Ask.env == AskConfig.DEVELOPMENT) {