title: ANT if else tasks approach
body: <p>I had a query regarding ANT if else tasks. After browsing lot of stuff, i understood that we dont have direct if else tasks in ant. </p>
  
  <p>My Requirement :</p>
  
  <pre><code>&lt;if&gt;
    &lt;equals arg1="value" arg2="value" /&gt;
   &lt;then&gt;
        &lt;property name="var1" value="class1"/&gt;
   &lt;/then&gt;
   &lt;else&gt;
        &lt;property name="var1" value="class2"/&gt;
   &lt;/else&gt;
  &lt;/if&gt;
  </code></pre>
  
  <p>Below is my questions:</p>
  
  <p>1) If we cant do it with ANT, can anyone suggest me the alternative approach to achieve it in ANT >1.6 versions<br>
  2) If i use antcontrib.jar in ANT_HOME/lib as an alternative, i have to keep the same jar in classpath in build.xml. can i have syntax for the same. I will cmd file which will call my build.xml file. Moreover, I have to set the property before executing any target in this case 2.</p>