title: Granite DS Actionscript Code Generation Ant cannot find class error
body: <p>I am trying to get my Ant build to run the granite DS Actionscript code generation task and am running into some problems. At the moment I am getting this error:</p>
  
  <pre><code>BUILD FAILED
  C...\build.xml:62: Could not load Java class file: SampleDTOOne.class
  </code></pre>
  
  <p>So the .class files are obviously being found. I am not however sure if this error means that the it cannot load the .class file or that it cannot find the actual java source code.</p>
  
  <p>My Ant task definition looks like this:
          </p>
  
  <pre><code>        &lt;classpath&gt;
              &lt;pathelement location="C.../src/packages/" /&gt;    
          &lt;/classpath&gt;
  
          &lt;fileset dir="${base.build.dir}/jc/classes/gpbit/packageName"&gt;
              &lt;include name="*.class" /&gt;
          &lt;/fileset&gt;
  
      &lt;/gas3&gt;
  </code></pre>
  
  <p>I have tried many different values for the classpath but cannot get anythign to work. I do not like the path that I am using to find the .class files but again at the moment this is the only one I can get to work. None of the variables seem to make it any easier to get to this location.
  The fileset is definitely working as it definitely found the .clas files to include the name in the error message.</p>
  
  <p>More detailed error message:</p>
  
  <pre><code> [gas3] Using output dir: C...trunk\plugin\build/etc/src/as3
   [gas3] Using classpath: C...\trunk\plugin\src\packages
   [gas3] Loading all Java classes referenced by inner fileset(s) {
   [gas3] java.lang.ClassNotFoundException: SampleDTOOne
   [gas3]     at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
  </code></pre>
  
  <p>any help much appreciated</p>