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

flair.gradle.tasks.variantFactories.ProcessIconsTaskFactory.groovy Maven / Gradle / Ivy

package flair.gradle.tasks.variantFactories

import flair.gradle.tasks.TaskDefinition
import flair.gradle.tasks.process.ProcessIcons
import flair.gradle.variants.Variant
import org.gradle.api.Project

/**
 * @author SamYStudiO ( [email protected] )
 */
class ProcessIconsTaskFactory implements IVariantTaskFactory
{
	public ProcessIcons create( Project project , Variant variant )
	{
		String name = TaskDefinition.PROCESS_ICONS.name + variant.getNameWithType( Variant.NamingTypes.CAPITALIZE )

		ProcessIcons t = project.tasks.findByName( name ) as ProcessIcons

		if( !t ) t = project.tasks.create( name , ProcessIcons )

		t.group = TaskDefinition.PROCESS_ICONS.group.name
		t.variant = variant

		return t
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy