Update: It’s not a bug, it’s a feature! Seriously. 😉 It turns out that the <ant> task effectively sets the basedir property as a user-property, which means that it can’t be changed. User-properties are propogated through regardless of the inheritAll flag. The doco could have been clearer, but that’s life.
The easy work around: don’t use the dir attribute to locate the file, actually specify it in full (see the bug report for the example).
I lodged a bug report with Apache Ant today; first one in a long while. It turns out the the <ant> and <subant> tasks aren’t entirely compatible.
Continue reading “Mixing and leads to confusion…”