David Sitsky wrote:
As far as I can tell, there is no way to do the thing which I at least
would 95% of the time want to do: run a specific build script and ask Ant
to give it the basedir it specifies for itself (without hardcoding this
into the calling script).
I would have thought this is what most users would be wanting too. For all
of my own "nested" buildfiles, I had basedir="." and always called them
using the "dir" attribute in the <ant> task. I didn't realise basedir in the
nested task is ignored in this circumstance (my fault for not reading the
manual properly).
Gentlemen:
I submitted a patch a few weeks back to address this problem.
It makes the <ant> task not override the child antfile basedir IFF
inheritAll == false and no dir attribute specified. Please see:
http://www.mail-archive.com/ant-dev%40jakarta.apache.org/msg10183.html
I am guessing it may have been overlooked b/c
a) the need to get 1.4.1 out the door
b) one might argue it represents "new" ("changed") functionality
Submitters: please consider this another request to
commit this (tiny) patch, now that 1.4.1 has shipped.
Thanks!
--Craeg