What would you choose as the default Ant target?In the context of a small visual tool with a user interface, open source.I was thinking about jar because the project's distributable is the jar file.But someone prefers to have help as the default target, to show the available targets.Or maybe another target? I doubt anyone would really care, but would be the least surprise choice?
Default Ant target: help or jar?
ant
The name of the default Ant target is not as important as setting it to whichever target will be used most frequently by end users. Good default target names include:builddistjarmainIf your Ant project contains many targets, it can be confusing to new users to read through all the target descriptions (e.g. by listing all the targets by default). The first time building a new project it is convenient to be able to type ant at the command prompt and get the desired deliverable.Each target should be documented by utilizing the description attribute so that running ant -p provides sufficient information for most users to quickly evaluate the remaining targets in your project. The same principles apply when running the Ant build from within a GUI.   