Flex ANT tasks can't find my assets

Posted by lach on Stack Overflow See other posts from Stack Overflow or by lach
Published on 2010-03-18T01:07:34Z Indexed on 2010/03/18 1:11 UTC
Read the original article Hit count: 465

Filed under:
|

I'm attempting to compile my Flex project with an ANT build script.

One of my MXML components references an external XML data file, like this:

<mx:XML id="treeData" source="assets/data/help.xml" />

When I build the project using Flex Builder, it compiles fine. However, when I try to compile it using ANT, I get the following error:

Error: Problem finding external XML: assets/data/help.xml

How come ANT isn't finding the XML file? Apparently it knows the source path otherwise it would not have found the component to begin with. I added the source path to the target anyway, but it doesn't seem to have made any difference:

<source-path path-element="${SRC}" />

Any ideas?

© Stack Overflow or respective owner

Related posts about flex

Related posts about ant