flair.gradle.cli.Mxmlc.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 Mxmlc extends AbstractCli
{
@Override
public String execute( Project project , Platform platform )
{
ByteArrayOutputStream outputStream = new ByteArrayOutputStream( )
ExecResult result = project.exec {
executable new Sdk( project , platform ).mxmlcPath
arguments.each {
println( "\t" + it )
args it
}
standardOutput = outputStream
}
println( outputStream.toString( ) )
return outputStream.toString( )
}
}