Extension for handling RDM Facade configuration and task creation.
This extension creates a task named generateRdmFacades that has no actions. It is used to tie all the
task definitions created from facade generator definitions together into the build lifecycle. The
compileJava task is set to depend on generateRdmFacades.
This extension is also a named object container for facade generation definitions, using RdmFacadeGeneratorDefinition objects, to simplify the configuration within the build script. Here's an example configuration:
buildSupport.configureRdmFacades(project)
rdmFacadeGenerators {
acme {
// Just using a single input file
structureXmls = files('src/main/resources/structures/dataStructures.xml')
targetPackage = 'org.acme'
camelCase = true
}
coyote {
// Use all the files in a given directory
structureXmls = files(file('src/main/resources/coyote//structures/master_plans').listFiles())
targetPackage = 'com.my.secret.plans'
camelCase = true
classNamePrefix = 'Stealth'
failBuildOnError = false // Some plans are not working
}
}
The configuration above would generate two tasks of type GenerateRdmFacadeTask,
named generateRdmFacadesForAcme and generateRdmFacadesForCoyote.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
EXTENSION_NAME |
|
static java.lang.String |
GENERATE_FACADES_TASK_NAME |
|
static java.lang.String |
GENERATORS_NAME |
| Type | Name and description |
|---|---|
org.gradle.api.Project |
project |
| Constructor and description |
|---|
GenerateRdmFacadesExtension
(org.gradle.api.Project project) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation