Skip to content

Ant Best Practices

Ant Best Practices

In 2003, Eric M. Burke published an article at OnJava called Top 15 Ant Best Practices. Are the practices still relevant? What has changed in the last 4 years? In this series I’ll be reviewing each one and trying to find out.

1 of 15: Adopt consistent style
2 of 15: Put the build file at the root of your project
3 of 15: Prefer a single buildfile
4 of 15: Provide good help
5 of 15: Provide a clean target
6 of 15: Manage dependencies with Ant
7 of 15: Define and reuse paths
8 of 15: Define proper target dependencies
9 of 15: Use properties for configurability
10 of 15: Keep the build process self contained
11 of 15: Use version control
12 of 15: Use Ant as the least common denominator
13 of 15: Use zipfileset
14 of 15: The clean test
15 of 15: Avoid platform-specific wrapper scripts

(Photo taken from 33mhz’s photostream)
Share:
  • del.icio.us
  • DZone
  • Slashdot
  • LinkedIn
  • Facebook
  • Twitter

6 Comments

  1. Jim Priest wrote:

    Great stuff – I’ve added your link to my Ant wiki of resources:

    http://www.thecrumb.com/wiki/Ant

    Saturday, May 10, 2008 at 3:22 pm | Permalink
  2. Evgeny wrote:

    Just what the doctor prescribed!
    Love this, going up into my bookmarks toolbar.

    Saturday, May 17, 2008 at 1:31 am | Permalink
  3. Julian wrote:

    Jim and Evgeny: Thanks for your supportive comments! It’s encouraging!

    Best,

    Julian.

    Sunday, May 18, 2008 at 10:48 pm | Permalink
  4. Abi wrote:

    Very useful.. clear and concise tips to avoid pitfalls.

    Friday, October 31, 2008 at 6:03 pm | Permalink
  5. Very useful writeup..Thanks.

    Tuesday, June 29, 2010 at 4:33 am | Permalink
  6. ocpjp wrote:

    Very good summarisation of the best practices. I was new to ANT and this was very helpful.

    Friday, December 17, 2010 at 5:39 am | Permalink

3 Trackbacks/Pingbacks

  1. thecrumb.com » Quick Ant Update on Tuesday, October 21, 2008 at 3:10 pm

    [...] catching up on Julian Simpson’s great blog.  Of particular interest here is his on going Ant Best Practices Series.  If you are just getting started with Ant or an experienced Ant user – I’d suggest reading [...]

  2. Awesome ANT resource on Thursday, October 30, 2008 at 12:02 am

    [...] The Ant Best Practices Series Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL. « How to delete a workspace reference in Flex Builder [...]

  3. 2008 in posts — The Build Doctor on Tuesday, December 30, 2008 at 3:32 pm

    [...] related posts found, but try theseRefactor your configuration fileToo AgileThe Ant Best Practices SeriesBranching: do it like this and nobody gets hurtHow to fetch the hostname of your computer in [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*