Search in sources :

Example 11 with RunResult

use of org.jetbrains.kotlin.android.tests.run.RunResult in project kotlin by JetBrains.

the class AntRunner method installApplicationOnEmulator.

public void installApplicationOnEmulator() {
    System.out.println("Installing apk...");
    RunResult result = RunUtils.execute(generateCommandLine("installt"));
    String resultOutput = result.getOutput();
    if (!isInstallSuccessful(resultOutput)) {
        installApplicationOnEmulator();
        return;
    } else {
        if (result.getStatus()) {
            System.out.println(resultOutput);
        }
    }
    OutputUtils.checkResult(result);
}
Also used : RunResult(org.jetbrains.kotlin.android.tests.run.RunResult)

Example 12 with RunResult

use of org.jetbrains.kotlin.android.tests.run.RunResult in project kotlin by JetBrains.

the class AntRunner method cleanOutput.

/* Clean output directory */
public void cleanOutput() {
    System.out.println("Clearing output directory...");
    RunResult result = RunUtils.execute(generateCommandLine("clean"));
    OutputUtils.checkResult(result);
}
Also used : RunResult(org.jetbrains.kotlin.android.tests.run.RunResult)

Example 13 with RunResult

use of org.jetbrains.kotlin.android.tests.run.RunResult in project kotlin by JetBrains.

the class AntRunner method packLibraries.

/* Pack compiled sources on first step to one jar file */
public void packLibraries() {
    System.out.println("Pack libraries...");
    RunResult result = RunUtils.execute(generateCommandLine("pack_libraries"));
    OutputUtils.checkResult(result);
}
Also used : RunResult(org.jetbrains.kotlin.android.tests.run.RunResult)

Aggregations

RunResult (org.jetbrains.kotlin.android.tests.run.RunResult)13 GeneralCommandLine (com.intellij.execution.configurations.GeneralCommandLine)5 Matcher (java.util.regex.Matcher)1