This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
We have a toplevel build.xml that essentially calls other projects' build.xml files. And this works just fine. However for each target that ant automatically prints out, I can't tell which project's build.xml it came from. Below I have the following (sample) build.xml for each project. This produces output like:
I like the output that the echo statement does; however, it is unmaintainable/error-prone to have to put the echo statement in each task.
Is there an easier way? Any help would be appreciated.
I used a naming convention for targets whereby each target was prefixed with some letters to identify the xml file. For example, in the global included xml file all targets started with "g_". But having the option to have Ant print something like "[targetx in foo.xml]" seems like a worthwhile enhancement to Ant.