title: How to set a property in java code using build.xml
body: <p>I am new to Ant and any help will be appreciated.</p>
  
  <p>What I want to do is:</p>
  
  <p>When I am invoking an Ant target, I am doing :</p>
  
  <p><code>ant -DSIMV3.1=true run-tenantManagement</code></p>
  
  <p>Now Inside build.xml, I have:</p>
  
  <pre><code>&lt;target name="run-tenantManagement" depends="jar"&gt;
     &lt;property name="SIMV3.1" value="${SIMV3.1}" /&gt;
      ...
  &lt;/target&gt;
  </code></pre>
  
  <p>Now I want the value of the property SIMV3.1 to be visible inside my java code.
  Because in my java code, I want to set a condition that:</p>
  
  <pre><code>if(SIMV3.1==true){
  //do something
  }else{
  //do something else
  }
  </code></pre>
  
  <p>Kindly help.</p>