title: Build task for AspectJ fails due to undefined name
body: <p>I'm having issues with creating an ant task to compile for AspectJ. It seems to be a namespace issue, with ant not recognizing the task name "aspectj:iajc." Any idea why this might be?</p>
  
  <p>Error message: </p>
  
  <pre><code>build.xml:122: Problem: failed to create task or type antlib:org.aspectj:iajc 
  Cause: The name is undefined.
  </code></pre>
  
  <p>Added jars to WEB-INF/lib directory:</p>
  
  <ul>
  <li>aspectjrt-1.8.5.jar</li>
  <li>aspectjtools-1.6.2.jar</li>
  <li>aspectjweaver-1.8.5.jar</li>
  </ul>
  
  <p>Added namespace to project element:</p>
  
  <pre><code>&lt;project xmlns:aspectj="antlib:org.aspectj"&gt;
  </code></pre>
  
  <p>Added iajc task to compile target:</p>
  
  <pre><code>&lt;target name="compile"&gt;
  ...
      &lt;aspectj:iajc source="1.6" sourceroots="../src" destDir="./${final.dir}/WEB-INF/classes/"&gt;
          &lt;classpath&gt;
              &lt;fileset dir="./lib/"&gt; 
                  &lt;include name="**/*.jar" /&gt; 
              &lt;/fileset&gt;      
          &lt;/classpath&gt;
      &lt;/aspectj:iajc&gt;
  ...
  &lt;/target&gt;
  </code></pre>
  
  <p>I tried changing the source parameter in the iajc task to "1.8" to match the jrt package, but got the same error message.</p>
  
  <p>Reference:</p>
  
  <ul>
  <li><a href="http://java.dzone.com/news/aspectj-and-ant" rel="nofollow">http://java.dzone.com/news/aspectj-and-ant</a></li>
  </ul>