Apache Ant/Best Practices

From Wikibooks, open books for an open world
Jump to: navigation, search

Here are some of the Ant best practices that have been identified for creating maintainable Ant build files. Best Practices are not enforced by any compiler but they are conventions that allow people that are maintaining many projects to become quickly familiar with your build process.

Learn Ant Best Practices[edit]

Building your Ant Vocabulary

  • Study ant build scripts for other Open Source projects
  • Learn domain-specific targets such as building jar files, doing XML transforms or complex installs
  • Depending on diversity of tasks this might take a few hours to a few weeks

What to do about local file system paths[edit]

Local Property Files

Local File Systems

Standard Targets[edit]