@CompileStatic class SourceSets extends Object
| Constructor and description |
|---|
SourceSets() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static SourceSet |
findMainSourceSet(org.apache.tools.ant.Project project)Finds the main SourceSet for the project |
|
static SourceSet |
findSourceSet(org.apache.tools.ant.Project project, String name)Finds the main SourceSet for the project |
|
static SourceSetContainer |
findSourceSets(org.apache.tools.ant.Project project) |
|
static File |
getBaseDir(org.apache.tools.ant.Project project)Gets the base directory for the project |
|
static File |
getBuildClassesDir(org.apache.tools.ant.Project project)Gets the build Groovy classes directory for the project |
|
static File |
getBuildResourcesDir(org.apache.tools.ant.Project project)Gets the build resources directory for the project |
|
static File |
getBuildTargetDir(org.apache.tools.ant.Project project)Gets the build directory for the project |
|
static String |
resolveGrailsAppDir(org.apache.tools.ant.Project project)Resolve the directory of Grails app, for examples, 'grails-app', 'app'. |
|
static String |
resolveGrailsAppPath(org.apache.tools.ant.Project project)Resolve the directory of Grails app, for examples, 'grails-app', 'app', but you can always configure it. |
Finds the main SourceSet for the project
project - The projectFinds the main SourceSet for the project
project - The projectGets the base directory for the project
project - The projectGets the build Groovy classes directory for the project
project - The projectGets the build resources directory for the project
project - The projectGets the build directory for the project
project - The projectResolve the directory of Grails app, for examples, 'grails-app', 'app'.
project - the Gradle projectResolve the directory of Grails app, for examples, 'grails-app', 'app', but you can always configure it.
project - the Gradle project