public class TransformTask
extends org.gradle.api.DefaultTask
TransformationSet
instances.| Constructor and Description |
|---|
TransformTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
freeMarker(groovy.lang.Closure<?> pClosure)
Add a
FreeMarkerTransformationSet to the task. |
java.lang.String |
getFreeMarkerVersion()
Get the version of the FreeMarker library to use.
|
java.lang.String |
getJaxenVersion()
Get the version of the Jaxen library to use.
|
java.lang.String |
getSaxonVersion()
Get the version of the Saxon library to use.
|
java.util.List<TransformationSet> |
getTransformationSets()
Get the transformation sets added to this task.
|
java.lang.String |
getXalanVersion()
Get the version of the Xalan library to use.
|
boolean |
isFailOnError()
Get the fail on error property.
|
void |
saxon(groovy.lang.Closure<?> pClosure)
Add a
SaxonTransformationSet to the task. |
void |
setFailOnError(boolean pFailOnError) |
void |
setFreeMarkerVersion(java.lang.String pFreeMarkerVersion) |
void |
setJaxenVersion(java.lang.String pJaxenVersion) |
void |
setSaxonVersion(java.lang.String pSaxonVersion) |
void |
setXalanVersion(java.lang.String pXalanVersion) |
void |
transform()
Execute the transformations specified in all transformation sets added to the task.
|
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesServicepublic java.util.List<TransformationSet> getTransformationSets()
public void saxon(groovy.lang.Closure<?> pClosure)
SaxonTransformationSet to the task.pClosure - A closure that configures the transformation set.public void freeMarker(groovy.lang.Closure<?> pClosure)
FreeMarkerTransformationSet to the task.pClosure - A closure that configures the transformation set.@Input public boolean isFailOnError()
transform()
method will throw a GradleException if any transformation set reports a
transformation error. If this property is false, errors will only be logged. The default
value is false.public void setFailOnError(boolean pFailOnError)
@Input @Optional public java.lang.String getSaxonVersion()
public void setSaxonVersion(java.lang.String pSaxonVersion)
@Input @Optional public java.lang.String getFreeMarkerVersion()
public void setFreeMarkerVersion(java.lang.String pFreeMarkerVersion)
@Input @Optional public java.lang.String getXalanVersion()
null.public void setXalanVersion(java.lang.String pXalanVersion)
@Input @Optional public java.lang.String getJaxenVersion()
public void setJaxenVersion(java.lang.String pJaxenVersion)
public void transform()
org.gradle.api.GradleException - if at least one of the transformation sets reported an error and
isFailOnError() is true.