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

flair.gradle.structures.AtlasesStructure.groovy Maven / Gradle / Ivy

package flair.gradle.structures

import flair.gradle.extensions.FlairProperty
import flair.gradle.extensions.IExtensionManager
import org.gradle.api.Project

/**
 * @author SamYStudiO ( [email protected] )
 */
public class AtlasesStructure implements IStructure
{
	@Override
	public void create( Project project , File source )
	{
		String moduleName = ( project.flair as IExtensionManager ).getFlairProperty( FlairProperty.MODULE_NAME )

		if( project.fileTree( "${ moduleName }/src/main/atlases" ).size( ) > 0 ) return

		project.copy {
			from "${ source.path }/src/main/atlases"
			into "${ moduleName }/src/main/atlases"
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy