title: Could not load definitions from resource flexTasks.tasks. It could not be found
body: <p>I'm attempting to compile a Flex application from an ANT script, inside of Eclipse (<a href="http://labs.adobe.com/technologies/coldfusionbuilder/" rel="nofollow noreferrer">CFBuilder</a>, based on Eclipse), and I've run into this error:</p>
  
  <blockquote>
    <blockquote>
      <p>Could not load definitions from resource flexTasks.tasks. It could not be found.</p>
    </blockquote>
  </blockquote>
  
  <p>I haven't been able to find anything that gives directions on where this file (flexTasks.tasks) should be copied to, <em>if it's needed at all</em>. Some places indicate that it should be part of the flexTasks.jar file. I've tried two different things:</p>
  
  <ul>
  <li>Copy the jar file into the ant/plugins/lib folder (and restart my CF Builder instance)</li>
  <li>Specify the path to the jar in the <code>classpath</code> attribute, as suggested by the comment on <a href="http://livedocs.adobe.com/flex/3/html/anttasks_2.html" rel="nofollow noreferrer">this page</a></li>
  </ul>
  
  <p>Neither helps me get past this error.</p>
  
  <p>Here's my build script, for reference:</p>
  
  <pre><code>&lt;project name="Tagging" default="compile-tagging" basedir="."&gt;
  
      &lt;!-- setup flex compilation capability --&gt;
      &lt;taskdef resource="flexTasks.tasks" /&gt;
  
      &lt;property name="flex.src" value="./src" /&gt;
      &lt;property name="flex.bin" value="./bin"/&gt;
  
      &lt;target name="compile-tagging"&gt;
          &lt;mxmlc 
              file="${flex.src}/main.mxml"
              output="${flex.bin}/main.swf" 
              keep-generated-actionscript="true"&gt;
                  &lt;source-path path-element="${FLEX_HOME}/frameworks" /&gt;
          &lt;/mxmlc&gt;
      &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>