title: How to set an env variable in Ant build.xml
body: <p>I want to set an env variable inside my build.xml target</p>
  
  <pre><code>&lt;target name="run-tenantManagement" depends="jar"&gt;
     &lt;property name="SIMV3.1" value="${SIMV3.1}" /&gt;
      //now here i want to do something like setenv SIMV3.1 true
  &lt;/target&gt;
  </code></pre>
  
  <p>and Inside my java code, I want to access it using :</p>
  
  <pre><code>if("true".equals(System.getenv("SIMV3.1")){
  //do something
  }
  </code></pre>
  
  <p>Kindly suggest. I have tried many things but none of them worked.Also, there is no main() method as the framework is testng based and test cases are invoked using testNG.</p>