“Top 15 Ant Best Practices,” by Eric M. Burke

ONJava has posted “Top 15 Ant Best Practices,” by Eric M. Burke. I am just taking the 15 heads for the future reference.

1. Adopt Consistent Style Conventions
2. Put build.xml in the Project Root Directory
3. Prefer a Single Buildfile
4. Provide Good Help
5. Provide a Clean Target
6. Manage Dependencies Using Ant
7. Define and Reuse Paths
8. Define Proper Target Dependencies
9. Use Properties for Configurability
10. Keep the Build Process Self-Contained
11. Use Version Control
12. Use Ant as the Least Common Denominator
13. Use zipfileset
14. Perform the Clean Build Test
15. Avoid Platform-Specific Ant Wrappers

Technorati tags: Ant 

Advertisements

3 thoughts on ““Top 15 Ant Best Practices,” by Eric M. Burke

  1. piotrga

    I would add to it:

    – Keep it as simple as possible.
    – Use convension over configuration – avoid explosion of properties!
    – Use macros for common tasks.
    – Replace it with Maven if you can 🙂

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s