The extension object for the build.gradle script to configure the xsd2java task.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
NAME |
Name of this extension for this plugin. |
| Type | Name and description |
|---|---|
java.util.List<java.lang.String> |
argumentsAdditional arguments for the xsd2java ant task. |
java.lang.Boolean |
extensionShould add the xjc configuration to the ant runner classpath. |
java.io.File |
outputDirThe target path write the java sources to. |
org.gradle.api.Project |
projectThe base project this extension is active in. |
org.gradle.api.NamedDomainObjectContainer<Xsd2JavaTaskConfig> |
schemasThe different xsd schema configurations. |
| Constructor and description |
|---|
Xsd2JavaPluginExtension
(org.gradle.api.Project project)Initializes the new xsd2java extension. |
Xsd2JavaPluginExtension
(org.gradle.api.Project project, org.gradle.api.NamedDomainObjectContainer<Xsd2JavaTaskConfig> schemas)Setup the xsd plugin extension. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
arguments(java.util.List<java.lang.String> arguments)@param arguments The arguments passed to the task |
|
void |
extension(java.lang.Boolean extension)@param extension the new extension value. |
|
org.gradle.api.NamedDomainObjectContainer<Xsd2JavaTaskConfig> |
getSchemas()@return the schema container. |
|
void |
outputDir(java.io.File outputDir)@param outputDir The new output dir |
|
void |
schemas(groovy.lang.Closure<?> block)@param block the block |
|
void |
schemas(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<Xsd2JavaTaskConfig>> block)@param block the block |
| 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() |
Additional arguments for the xsd2java ant task.
Should add the xjc configuration to the ant runner classpath.
The target path write the java sources to.
The base project this extension is active in.
The different xsd schema configurations.
Initializes the new xsd2java extension.
project - the project this extension is added to.Setup the xsd plugin extension.
project - the projectschemas - the schema container.
arguments - The arguments passed to the task
extension - the new extension value.
outputDir - The new output dir
block - the block
block - the blockGroovy Documentation