dizag / as3-commons

Automatically exported from code.google.com/p/as3-commons
1 stars 0 forks source link

Build fails when using as3commons-logging #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Do the following steps:

1. Set up a test project with the as3commons-logging-2.0.swc in the libs folder

2. Create a build.xml file with the following ant task:

    <target name="test">
        <mxmlc file="${basedir}/src/Test.as" output="${basedir}/target/Test.swf" maxmemory="1024M" static-rsls="true">
            <compiler.source-path path-element="src" />
            <compiler.include-libraries dir="libs">
                <include name="*.swc" />
            </compiler.include-libraries>
        </mxmlc>
    </target>

3. Run the test ant task on the build.xml

Expected result:
The swf should be built successfully

Actual result:

    [mxmlc] .......\libs\as3commons-logging-2.0.swc(org.as3commons.logging.setup.target:AirFileTarget)
    [mxmlc]
    [mxmlc] Error: Type was not found or was not a compile-time constant: File.
    [mxmlc]

BUILD FAILED

Version of the product used:
as3commons-logging-2.0.swc

Version of Flex SDK used:
4.1.0.16076

Operating system:
Win 7

Original issue reported on code.google.com by enders.s...@gmail.com on 15 Jun 2011 at 3:13

GoogleCodeExporter commented 9 years ago
If you use "compiler.include-libraries" it will try to compile all files in 
your final .swf. In that case you also have to add all possible extensions (in 
this case airglobal.swc to be found in the flex sdk). It is recommended to use 
"compiler.library-path" that will just reuse the parts you need.

cheers!

Original comment by mastakan...@gmail.com on 16 Jun 2011 at 2:34

GoogleCodeExporter commented 9 years ago
Cool, thanks

Original comment by enders.s...@gmail.com on 16 Jun 2011 at 3:08