PDA

View Full Version : ant mxmlc task don't compile with FlexSDK 4



vola
September 24th, 2008, 08:25 AM
Hello.
I try to compile via ant with Flex 4 SDK, but get an error:


<mxmlc file="${src.dir}/Client.as" output="${bin.dir}/client.swf" keep-generated-actionscript="false">

<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${FLEX_HOME}/frameworks" />
<default-size width="${swf.width}" height="${swf.height}" />
<default-frame-rate>31</default-frame-rate>
<default-background-color>0x869CA7</default-background-color>
<use-network>false</use-network>
</mxmlc>



when FLEX_HOME = D:/Distr/adobe/flex_sdk_4.0.0.3309/ - an error throws:

BUILD FAILED
D:\_work\_workspaces\third_new\p2p\build.xml:105: The class not found in jar file: mxmlc.jar

It is very similar with this (http://bugs.adobe.com/jira/browse/SDK-15250), but there shown fix status.

With Flex 3 sdk - all works good. How to resolve this ?

jwopitz
September 25th, 2008, 01:38 AM
have you checked to make sure that the mxmlc.jar exists in {FLEX_HOME}/lib/ ?

I normally don't do the nightly builds for their SDKs but I wonder if they expect for you to compile the COMPC & MXMLC executables. Surely not?!

vola
September 25th, 2008, 12:09 PM
It is last compiled version of SDK (http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4) and mxmlc.jar - exist.
I use ant within Eclipse(FDT) .

jwopitz
September 25th, 2008, 12:12 PM
Sorry I can't be of more help. Have you tried posted to Flex Coders forum over at Yahoo Groups and see if someone could help you there?

ltrempe
July 9th, 2009, 12:08 AM
This may be resolved by either replacing or deleting an outdated flexTasks.jar copied to [antroot]/lib ...ie., undoing the advice given from Adobe's devnet article, Using Flex Ant Tasks to build Flex projects:

http://www.adobe.com/devnet/flex/articles/flex_ant_pt1_print.html