flair.gradle.cli.Adt.groovy Maven / Gradle / Ivy
package flair.gradle.cli
import flair.gradle.dependencies.Sdk
import flair.gradle.variants.Platform
import org.gradle.api.Project
import org.gradle.process.ExecResult
/**
* @author SamYStudiO ( [email protected] )
*/
public class Adt extends AbstractCli
{
@Override
public String execute( Project project , Platform platform )
{
ByteArrayOutputStream outputStream = new ByteArrayOutputStream( )
ExecResult result = project.exec {
executable new Sdk( project , platform ).adtPath
arguments.each {
println( "\t" + it )
args it
}
standardOutput = outputStream
}
println( outputStream.toString( ) )
return outputStream.toString( )
}
}