I’m working on a Gradle plugin which internally uses already existing Ant task. Some properties are optional in Ant task (the default value is used). I don’t want to define my own default values and use it when not defined by user in build.gradle, but rather use those from Ant by omitting a parameter when calling Ant task.
Example (inside AntBuilder):
ant.someTask(required1: "required1", optional1: "optional1") //in case an optional attribute is defined in a configuration ant.someTask(required1: "required1") //in case an optional attribute is not defined
I know how to do it with nested elements, but how to work with tag attributes?