Groovy Documentation

org.gradle.buildsetup.tasks
[Groovy] Class SetupBuild

java.lang.Object
  org.gradle.api.internal.AbstractTask
      org.gradle.api.DefaultTask
          org.gradle.buildsetup.tasks.SetupBuild

@Incubating
class SetupBuild
extends DefaultTask

Generates a Gradle project structure.


Property Summary
ProjectLayoutSetupRegistry projectLayoutRegistry

 
Method Summary
String getType()

The desired type of build to create, defaults to {@value BuildSetupTypeIds#POM} if 'pom.xml' is found in project root if no pom.xml is found, it defaults to {@value BuildSetupTypeIds#BASIC}.

void setType(String type)

void setupProjectLayout()

 

Property Detail

projectLayoutRegistry

ProjectLayoutSetupRegistry projectLayoutRegistry


 
Method Detail

getType

String getType()
The desired type of build to create, defaults to {
value:
BuildSetupTypeIds#POM} if 'pom.xml' is found in project root if no pom.xml is found, it defaults to {@value BuildSetupTypeIds#BASIC}. This property can be set via command-line option '--type'.


setType

@CommandLineOption(options = "type", description = "Set type of build to create.")
void setType(String type)


setupProjectLayout

@TaskAction
void setupProjectLayout()


 

Gradle API 1.7