Ant if statement -


below snippet build.xml file. want modify file jar name set depending on value of variable within build file.

<info     jarname="java get"    jarurl="${deploy-url}${polish.jarname}" /> 

so -

<info    if(${deploy-url} == "test")       jarname="java get"     else       jarname="java test"        jarurl="${deploy-url}${polish.jarname}" /> 

or can call java program return jar name, -

<info    jarname=java programtoexecute     jarurl="${deploy-url}${polish.jarname}" /> 

thanks suggestions,

adrian

the ant contrib project has selection of custom tasks, including <if> task let this. it's clumsy, works.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -