flair.gradle.tasks.AbstractTask.groovy Maven / Gradle / Ivy
package flair.gradle.tasks
import flair.gradle.extensions.FlairProperty
import flair.gradle.extensions.IExtensionManager
import org.gradle.api.DefaultTask
/**
* @author SamYStudiO ( [email protected] )
*/
public abstract class AbstractTask extends DefaultTask implements ITask
{
protected IExtensionManager getExtensionManager()
{
return project.flair as IExtensionManager
}
protected File getModuleDir()
{
return project.file( extensionManager.getFlairProperty( FlairProperty.MODULE_NAME ) )
}
}