All Downloads are FREE. Search and download functionalities are using the official Maven repository.

flair.gradle.cli.Idb.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 Idb extends AbstractCli
{
	@Override
	public String execute( Project project , Platform platform )
	{
		ByteArrayOutputStream outputStream = new ByteArrayOutputStream( )

		ExecResult result = project.exec {

			executable new Sdk( project , platform ).idbPath

			arguments.each {

				println( "\t" + it )
				args it
			}

			standardOutput = outputStream
		}

		println( outputStream.toString( ) )

		return outputStream.toString( )
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy