Reading up on ant but can't seem to find much info out there on "rules of thumb" for how to decompose your build out into multiple XML files, as opposed to one monolithic build.xml
.
What should a single build file strive to accomplish? I think if I understand that it will be easier to decide how many files I need, and how to group targets inside of each.
Thanks in advance!
The "rule of thumb" I use is to use one file to begin with and then split when the need arises. Anything else becomes a form of big upfront design.
The main reason for splitting is when you want to share targets between projects. Just be aware that creating such splits has overheads (e.g., how to make the targets available in each project, how to version the shared file, etc), which needs to be outweighed by the benefits (e.g. reducing the duplicate targets between projects)