Here's another quick snippet to add Linked Resources to a compile process built with ANT. You know, you can link a whole directory to be a "Linked Library" in FDT, e.g. Greensock's TweenLite. Doing so means that you cannot use the -library-path argument as it only work with .swc files. Instead of this use -source-path to successfully add a whole directory to be compiled into your SWF.
XML:
-
<arg value="-source-path=/Users/marvin/libs/greensock-as3" />
This way you can use it in an AIR build as well and you do not have to replace your directory based libraries with SWC files.



August 13th, 2010
Marvin Blase
Posted in
Tags:
NICE! This was exactly what I was looking for! I already started a comment conversation with Karl Freeman from flashlounge.net about this.
The only way i could compile external libs was either copy them in my src folder (which i thought was not efficient) or compile my libs as swcs (which i was doing right now :) )
So thank you for this!
Sidney
Glad to help and watch your experiences on http://www.welovefdt.com as well :)
非常感谢,终于找到Ant的“Add Linked Resources”方法。
incredibly useful, uncovered very much!.