DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29658>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29658 Mixing <ant> and <subant> causes basedir to become confused [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Additional Comments From [EMAIL PROTECTED] 2004-06-18 07:44 ------- If you read the <ant> manual page very carefully (i.e as if you were a lawyer) you may see that is the designed behaviour (I think). The ant call in the main directory sets the basedir of the subsequent ant calls by use of the dir="../sub" attribute. In this case "basedir" becomes (I think) a user-like property and is not by default overridden by the subant call in the build file in sub. To get the behaviour you want you need to do: <project name="main" default="build" > <target name="build" > <echo message="main base dir=${basedir}" /> <!-- <ant dir="../sub" inheritall="false" /> --> <ant inheritall="false" antfile="../sub/build.xml" /> </target> </project> In your main build file. I am marking this as WONTFIX, because to change the behaviour would break a lot of build scripts. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]