/customers/iconara.net/iconara.net/httpd.www/blog/wp-content/plugins/wp-super-cache/wp-cache-phase1.php Warning: Cannot modify header information - headers already sent by (output started at /customers/4/c/9/iconara.net/httpd.www/blog/wp-content/advanced-cache.php:1) in /customers/4/c/9/iconara.net/httpd.www/blog/wp-includes/feed-rss2-comments.php on line 8 Comments on: Quick tips to speed up your Ant build http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/ Thu, 05 Jul 2012 13:41:39 +0000 hourly 1 http://wordpress.org/?v=3.0 By: Carl van Tonder http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/comment-page-1/#comment-8641 Carl van Tonder Wed, 23 May 2012 20:37:41 +0000 http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/#comment-8641 <p>Thanks for the tip — I'm using both incremental and uptodate, and build times have gone down from a regular 4 minutes to 17 seconds (where only a single module has changed). Thanks!</p> Thanks for the tip — I’m using both incremental and uptodate, and build times have gone down from a regular 4 minutes to 17 seconds (where only a single module has changed). Thanks!

]]>
By: Ricki http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/comment-page-1/#comment-7843 Ricki Sun, 14 Jun 2009 20:13:37 +0000 http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/#comment-7843 <p>Hi Theo That is great, I'll surly include that n my compile macro somehow.</p> <p>Thanks for elaborating:)</p> Hi Theo That is great, I’ll surly include that n my compile macro somehow.

Thanks for elaborating:)

]]>
By: Theo http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/comment-page-1/#comment-7842 Theo Sun, 14 Jun 2009 11:06:24 +0000 http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/#comment-7842 <p>This tip works for telling Ant whether or not to run a target, so to use it to conditionally compile N separate SWFs you need N+1 targets (apart from the init target that contains the uptodate-statements); one for each file and one that depends on all the others (so you can type "ant compile" and compile the lot). You also need N uptodate-statements in the init target, and make sure the init target runs first:</p> <p><pre><code><target name="init"> <uptodate property="uptodate.someswf" targetfile="path/to/some.swf"> <srcfiles dir="path/to/src"> ... </srcfiles> </uptodate> <uptodate property="uptodate.someotherswf" targetfile="path/to/another.swf"> <srcfiles dir="path/to/some/other/src"> ... </srcfiles> </uptodate> ... </target></p> <p><target name="build" depends="init, compile1, compile2, compile3"/></p> <p><target name="compile1" unless="uptodate.someswf"> <mxmlc .../> </target></p> <p><target name="compile2" unless="uptodate.someotherswf"> <mxmlc .../> </target></p> <p>... </code></pre></p> This tip works for telling Ant whether or not to run a target, so to use it to conditionally compile N separate SWFs you need N+1 targets (apart from the init target that contains the uptodate-statements); one for each file and one that depends on all the others (so you can type “ant compile” and compile the lot). You also need N uptodate-statements in the init target, and make sure the init target runs first:

<target name="init">
  <uptodate property="uptodate.someswf" targetfile="path/to/some.swf">
    <srcfiles dir="path/to/src">
      ...
    </srcfiles>
  </uptodate>
  <uptodate property="uptodate.someotherswf" targetfile="path/to/another.swf">
    <srcfiles dir="path/to/some/other/src">
      ...
    </srcfiles>
  </uptodate>
  ...
</target>

<target name="build" depends="init, compile1, compile2, compile3"/>

<target name="compile1" unless="uptodate.someswf"> <mxmlc .../> </target>

<target name="compile2" unless="uptodate.someotherswf"> <mxmlc .../> </target>

...

]]>
By: Ricki http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/comment-page-1/#comment-7841 Ricki Sat, 13 Jun 2009 16:02:00 +0000 http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/#comment-7841 <p>Hi This looks great! Im just in the process of putting together an Ant script for our main project. I compiles 9 different modules into one AIR app, so what you are suggesting here could really save me some time.</p> <p>Im just not quite sure how to implement this. What if I have 9 swf's, am I suppose to write something resembling the init target for each of these? I have already put all of the compile action into a macro to produce a less cluttered script, how would this work for multiple swf's (which is the whole point: )</p> <p>Thanks again for trying to save other peoples time :) a noble course.</p> Hi This looks great! Im just in the process of putting together an Ant script for our main project. I compiles 9 different modules into one AIR app, so what you are suggesting here could really save me some time.

Im just not quite sure how to implement this. What if I have 9 swf’s, am I suppose to write something resembling the init target for each of these? I have already put all of the compile action into a macro to produce a less cluttered script, how would this work for multiple swf’s (which is the whole point: )

Thanks again for trying to save other peoples time :) a noble course.

]]>
By: Theo http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/comment-page-1/#comment-5776 Theo Fri, 22 Feb 2008 16:46:33 +0000 http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/#comment-5776 <p>The incremental flag is for recompiling only that which has changed, but I don't think it skips the compilation if nothing has changed, at least not when I have tried. I think the problem with incremental is that if class A has changed it still compiles the classes that class A uses, and then the classes that those classes use and so on... so in reality the benefit quickly approaches zero (but I could be wrong, I'm not sure if it's actually that dumb).</p> The incremental flag is for recompiling only that which has changed, but I don’t think it skips the compilation if nothing has changed, at least not when I have tried. I think the problem with incremental is that if class A has changed it still compiles the classes that class A uses, and then the classes that those classes use and so on… so in reality the benefit quickly approaches zero (but I could be wrong, I’m not sure if it’s actually that dumb).

]]>
By: Maz http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/comment-page-1/#comment-5775 Maz Fri, 22 Feb 2008 15:22:13 +0000 http://blog.iconara.net/2008/02/22/quick-tips-to-speed-up-your-ant-build/#comment-5775 <p>That's a great tip indeed !</p> <p>Do you know the "incremental" command-line argument of mxmlc ? It is supposed to do quite the same job, but it never works for me...</p> <p>Thanks for sharing</p> <p>{Maz}</p> That’s a great tip indeed !

Do you know the “incremental” command-line argument of mxmlc ? It is supposed to do quite the same job, but it never works for me…

Thanks for sharing

{Maz}

]]>