Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable number of parameters for a task

Status
Not open for further replies.

buddycasino

Programmer
Jan 13, 2006
1
CH
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top