What default targets do you have in your typical ant buildfile?

Posted by altern on Stack Overflow See other posts from Stack Overflow or by altern
Published on 2010-04-06T08:51:08Z Indexed on 2010/04/06 8:53 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

Do you have some predefined set of targets which all build.xml files you create contain? For example, a lot of ant manuals suggest the following list of targets:

  • init
  • clean
  • compile
  • build
  • jar
  • test
  • javadoc
  • dist
  • deploy
  • webapp

What is the most large build file you met in your life? How many targets did it have and what are they? How often do you need more than predefined set of targets?

The goal is to develop some conventions to have standard buildfile template for any project having the notion of the maven-like approach in mind (when a lot of work happens under the cover, convention over configuration). Also it would be great if you know the place where one can find collection of different buildfiles to choose or to get inspired from.

© Stack Overflow or respective owner

Related posts about ant

Related posts about build-process