title: Apache ant does not recognize 'for' task/macro, although I have added ant-contrib via taskdef
body: <p>I am getting following while doing ant build:</p>
  
  <pre><code>Build\build.xml:247: Problem: failed to create task or type
  for
  Cause: The name is undefined.
  Action: Check the spelling.
  Action: Check that any custom tasks/types have been declared.
  Action: Check that any &lt;presetdef&gt;/&lt;macrodef&gt; declarations have taken place.
  </code></pre>
  
  <p>build.xml line 247 is <code>&lt;for param="file"&gt;</code><br/></p>
  
  <p>Already defined <code>&lt;taskdef resource="net/sf/antcontrib/antcontrib.properties"/&gt;</code>, it didn't work. Then I specifically added following but it is still not working.</p>
  
  <pre><code>&lt;taskdef resource="net/sf/antcontrib/antcontrib.properties"&gt;
          &lt;classpath&gt;
              &lt;pathelement location="${env.ANT_HOME}/lib/ant-contrib-1.0b3.jar"/&gt;
          &lt;/classpath&gt;
      &lt;/taskdef&gt;
  </code></pre>
  
  <p>I have <strong>ant-contrib-1.0b3.jar</strong> at <strong>C:\Softwares\apache-ant-1.8.4\lib</strong> directory. <br/>What is missing here?</p>