flair.gradle.tasks.AbstractVariantTask.groovy Maven / Gradle / Ivy
package flair.gradle.tasks
import flair.gradle.variants.Variant
/**
* @author SamYStudiO ( [email protected] )
*/
public abstract class AbstractVariantTask extends AbstractTask implements IVariantTask
{
protected Variant variant
public Variant getVariant()
{
return variant
}
public void setVariant( Variant variant )
{
this.variant = variant
}
protected File getOutputVariantDir()
{
return project.file( "${ project.buildDir.path }/${ variant.getNameWithType( Variant.NamingTypes.UNDERSCORE ) }" )
}
}