return forkProcess(Main.class.getName(), debugPort, args);
}
public static File findGradlewInRootDir() {
File gradlewFile = null;
if (new File(System.getProperty("user.dir")).listFiles(new PatternFilenameFilter("gradlew")).length == 1) {
gradlewFile = new File(System.getProperty("user.dir") + File.separator + "gradlew");
} else {
if (new File(System.getProperty("user.dir")).getParentFile().getParentFile()
.listFiles(new PatternFilenameFilter("gradlew")).length == 1) {
gradlewFile = new File(new File(System.getProperty("user.dir")).getParentFile().getParentFile()
.getAbsolutePath()
+ File.separator + "gradlew");
} else {
Assert.fail("Cannot find gradlew executable in [" + System.getProperty("user.dir") + "] or ["