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
Post a Comment