Hi list,

I'm trying to create a buildfile for AS3.0 to be used with Ant/Eclipse and
have it working so far except for one part where it breaks. It has some
trouble with the given classpath but I can''t figure out what the problem
is.
Here's what I'm using ...

<macrodef name="compileRelease">
        <sequential>
                <echo message="Compiling release version of ${swf_target}
..."/>
                <loadfile property="package_path" srcfile=".package"/>
                <exec executable="${mxmlc}" failonerror="true">
                        <arg value="-actionscript-classpath"/>
                        <arg value="${basedir}/${src}"/>
                        <arg value="-debug=false"/>
                        <arg value="-strict=true"/>
                        <arg value="-default-background-color"/>
                        <arg value="${flash_bgcolor}"/>
                        <arg value="-default-frame-rate"/>
                        <arg value="${flash_framerate}"/>
                        <arg value="-default-size"/>
                        <arg value="${flash_width}"/>
                        <arg value="${flash_height}"/>
                        <arg value="-file-specs"/>
                        <arg
value="${src}/${package_path}/${main_class}.as"/>
                        <arg value="-output"/>
                        <arg value="${bin}/${swf_target}"/>
                </exec>
        </sequential>
</macrodef>


... I'm getting this error when I try to compile ...

[echo] Compiling release version of Test.swf ...
[echo] E:\Works\Eclipse\ActionScript 3.0 Lessons/src/testpackage
[exec] Loading configuration file D:\Adobe\Flex Builder\Flex Framework
2\frameworks\flex-config.xml, root element flex-config
[exec] Warning: Classpath entry, '', is a subdirectory of classpath entry,
'E:\Works\Eclipse\ActionScript 3.0 Lessons\src\testpackage'.
[exec] Initial setup: 375ms
[exec] Loaded 7 SWCs: 594ms
[exec] License Service: Flex 2.0 Developer Edition enabled (beta period ends
Jun 1, 2006)
[exec] Compiling...
[exec] E:\Works\Eclipse\ActionScript 3.0
Lessons\src\testpackage\TestClass.as: Error: A file found in an
actionscript-classpath must have the same package structure '', as the
definition's package, 'testpackage'.
[exec] Total time: 1437ms
[exec] Peak memory usage: 31 MB (Heap: 15, Non-Heap: 16)


.... The Class I'm trying to compile is nothing special, just a small test
but it is wrapped with ...

package testpackage
{
}

... I'm pretty much at the beginning with AS3 and I don't know what to make
of the compiler error since the classpath is given etc. So I was hoping
somebody has an idea or knows of any working AS3 buildfile examples out
there?

In any way thanks for helping!
Sascha



_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to