Search code examples
apache-flexantmxmlc

Build swf using mxmlc (Ant) - Code compiles when code not changed


I am using mxmlc task to generate swf for our project. Problem is, even when I dont change any flex code, swf compiles every time, which is comparatively lengthy process.

Does anyone know how to avoid it? Is there any solution to this?

Thanks in advance, Miral.


Solution

  • Incremental compilation should be what you are looking for. It's on by default when you compile from Flash Builder but not when you compile from the command line or Ant. The gist is that, with incremental compile on, mxmlc inspects your code looking for changes and only compiles what it needs to.