buddycasino
Programmer
Hi,
I have a situation where I don't know whether or not a variable is set at runtime.
As we all know, if a var is not set, its literal value is passed.
Example:
<someTask var1="${var1}" var2="${var2}"/>
I don't know beforehand if ${var2} is set at runtime or not, so sometimes the literal "${var2}" is passed to the task, which I want to avoid.
Maybe I can use conditionals to set a property to null if it is not set?
Does anyone know a solution to this problem?
I have a situation where I don't know whether or not a variable is set at runtime.
As we all know, if a var is not set, its literal value is passed.
Example:
<someTask var1="${var1}" var2="${var2}"/>
I don't know beforehand if ${var2} is set at runtime or not, so sometimes the literal "${var2}" is passed to the task, which I want to avoid.
Maybe I can use conditionals to set a property to null if it is not set?
Does anyone know a solution to this problem?