rss twitter

Add Linked Resources (as a src folder) to ANT builds

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:
  1. <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.

4 Responses to “Add Linked Resources (as a src folder) to ANT builds”

  1. 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

  2. Marvin Blase says:

    Glad to help and watch your experiences on http://www.welovefdt.com as well :)

  3. loglos says:

    非常感谢,终于找到Ant的“Add Linked Resources”方法。

  4. incredibly useful, uncovered very much!.

Leave a Reply

Powered by WordPress | Free T-Mobile Phones for Sale | Thanks to Palm Pre Blog, Video Game Music and Get Six Pack Abs