Granite DS Actionscript Code Generation Ant cannot find class error
- by Roaders
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:
BUILD FAILED
C...\build.xml:62: Could not load Java class file: SampleDTOOne.class
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.
My Ant task definition looks like this:
<classpath>
<pathelement location="C.../src/packages/" />
</classpath>
<fileset dir="${base.build.dir}/jc/classes/gpbit/packageName">
<include name="*.class" />
</fileset>
</gas3>
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.
More detailed error message:
[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)
any help much appreciated