ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30569] - basedir is not set correctly when calling subant task through ant task
Date Mon, 08 May 2006 15:26:43 GMT
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=30569>.
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=30569


jglick@netbeans.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asf@drewcox.com




------- Additional Comments From jglick@netbeans.org  2006-05-08 15:26 -------
(In reply to comment #9)
> With the folowing call, the basedir of the called build.xml remains set to the
> calling build.xml:
> 
> <ant antfile="../dep2/build.xml" target="compile" inheritrefs="false"
> inheritall="false"/>

Yes, this is potentially confusing but that's how it works. The 'dir' attr is
not set so it is inherited.

> I am working around this by setting the
> "dir" attribute on the call:
> 
> <ant antfile="../dep2/build.xml" dir="../dep2" target="compile"
> inheritrefs="false" inheritall="false"/>

That is what you have to do in order to make <ant> behave the way you maybe
expected it to.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message