// 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;
// }


import com.androidstarterkit.config.AskConfig;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
package com.androidstarterkit.util;



public class FileUtils {

  public static String getRootPath() {
    File projectDir = new File(".");

    try {
// 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/util/FileUtils.java
import com.androidstarterkit.config.AskConfig;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

package com.androidstarterkit.util;



public class FileUtils {

  public static String getRootPath() {
    File projectDir = new File(".");

    try {
      int index = projectDir.getCanonicalPath().indexOf(AskConfig.DEFAULT_ASK_APP_NAME);