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 Summary: Mixing <ant> and <subant> causes basedir to become confused Product: Ant Version: 1.6.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I've attached an example which shows it, but here's the detail. I've got three build files. The first uses <ant> to invoke the second. The second, in turn, uses <subant> to invoke a third (but potentially a heap) build file. When I use either the third or the second build files directly, it works fine. When I get the first one to invoke it, the basedir for the third script is wrong (it's set to the basedir of the second). Example transcript: C:\Temp\subanttest\sub\sub1>ant Buildfile: build.xml build: [echo] sub1 base dir=C:\Temp\subanttest\sub\sub1 BUILD SUCCESSFUL Total time: 0 seconds C:\Temp\subanttest\sub\sub1>cd .. C:\Temp\subanttest\sub>ant Buildfile: build.xml build: [echo] sub base dir=C:\Temp\subanttest\sub build: [echo] sub1 base dir=C:\Temp\subanttest\sub\sub1 BUILD SUCCESSFUL Total time: 1 second C:\Temp\subanttest\sub>cd ..\main C:\Temp\subanttest\main>ant Buildfile: build.xml build: [echo] main base dir=C:\Temp\subanttest\main build: [echo] sub base dir=C:\Temp\subanttest\sub build: [echo] sub1 base dir=C:\Temp\subanttest\sub BUILD SUCCESSFUL Total time: 1 second C:\Temp\subanttest\main> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
