title: Checking the "value" of "value" attribute of ant Property tag/element
body: <p>I wanted to check if a property value has a value which is supposed to be read from another file in ant</p>
  
  <p>can any body please without an additional jar.</p>
  
  <pre><code>&lt;property name="a" value="${input.password}" /&gt;
  </code></pre>
  
  <p>wanted to check if input.password has got the value or not from xyz.properties file or not</p>
  
  <p>many thanks
  Jib</p>
  
  <p>P.S: Actually I have to check this line password=mypassword is exist in .properties file or not  with ant script. Another way is welcome !</p>
  
  <p>Edit: I am doing from one of the referenced solutions but not succeeding:</p>
  
  <pre><code>&lt;property file="..\..\xyz\application.properties" prefix="input" /&gt; 
  
  &lt;property name="foo" value="${input.password}"/&gt;
   &lt;fail message="Property &amp;quot;foo&amp;quot; has no value"&gt;
       &lt;condition&gt;
            &lt;not&gt;
               &lt;equals arg1="${foo}" arg2=""/&gt;
            &lt;/not&gt;
       &lt;/condition&gt;
  &lt;/fail&gt;
  </code></pre>
  
  <p>Always getting this message:"Property &quot;foo&quot; has no value" regardless of this line exists or not:password=de in application properties.</p>