1.

How To Do Conditional Statement In Ant?

Answer»

There are many ways to solve the problem.

  • Since target if/unless all depend on some property is defined or not, you can USE CONDITION to define different NEW PROPERTIES, which in turn depends on your ant property values. This makes your ant script very flexible, but a little hard to read.
  • Ant-contrib has <if> <switch> tasks for you to use.
  • Ant-contrib ALSO has <propertyregex> which can make very complicate decisions. 

 

There are many ways to solve the problem.

 



Discussion

No Comment Found