as3corelib and ANT errors

65 views
Skip to first unread message

inchworm

unread,
Apr 21, 2010, 3:44:45 PM4/21/10
to ActionScript 3 Core Library
Hello,

We're trying to create our first build script to help standardize the
way we build sites. Currently we are receiving an error when we run
the ANT build. The error looks like this:

[mxmlc] Loading configuration file /Applications/Adobe Flash Builder 4/
sdks/4.0.0/frameworks/flex-config.xml
[mxmlc] /Users/[my username]/Documents/FlashWork/WorkflowProject/
libs/as3corelib.swc(com.adobe.air.logging:FileTarget)
[mxmlc] Error: Type was not found or was not a compile-time
constant: File.


Here is our ANT script:

<?xml version="1.0" encoding="utf-8"?>


<project name="Workflow Demo" default="compile application">


<!-- load previously defined configuration properties file -->
<property file="build.properties" />


<taskdef resource="flexTasks.tasks" classpath="${basedir}/libs/
flexTasks.jar" />

<target name="compile application" depends="init, build main" />


<!-- delete and create the DEPLOY and DOCS dir again -->
<target name="init">
<delete dir="${DEPLOY_DIR}" />
<mkdir dir="${DEPLOY_DIR}" />
</target>

<!-- create the main swf -->
<target name="build main" depends="init">
<mxmlc
file="${basedir}/src/Application.as"
output="${basedir}/deploy/Application.swf"
actionscript-file-encoding="UTF-8">


<arg line="-target-player=${swf.version}"/>
<compiler.include-libraries dir="libs" append="true">
<include name="ui_library.swc" />
<include name="as3-signals.swc" />
<include name="as3corelib.swc" />
<include name="robotlegs-framework-v1.0.3.swc" />
<include name="signals-extension-SignalCommandMap.swc" />
</compiler.include-libraries>
<compiler.debug>false</compiler.debug>


<default-frame-rate>30</default-frame-rate>
</mxmlc>
</target>
</project>

--
You received this message because you are subscribed to the Google Groups "ActionScript 3 Core Library" group.
To post to this group, send email to as3co...@googlegroups.com.
To unsubscribe from this group, send email to as3corelib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/as3corelib?hl=en.

Michael Rochelle

unread,
Apr 22, 2010, 2:13:41 AM4/22/10
to as3co...@googlegroups.com
You either need to include the air libraries or a work around is to
create an empty class flash.filesystem.File just make sure you don't
attempt to use FileTarget in the logging framework.

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages