Ant build files and targets?

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 .

Up vote 2 down vote favorite 1 share g+ share fb share tw.

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! Java ant organization link|improve this question asked Feb 21 at 23:24herpylderp2,09314 98% accept rate.

1 URL1 may be of interest – Ray Tayek Feb 22 at 3:07.

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).

1 for Ant in Action 2nd edition (covers Ant 1.7. X, Ant 1.8.2 is the present stable version)as Ray already mentioned in his comment See this pdf for a good presentation about ant techniques/patterns/antipatterns Some best practices , a bit outdated, but most tips are still helpful. Beside that check the ant manual especially for import, macrodef, presetdef, scriptdef, ant and subant task After all avoid antcall, use macrodef instead!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions