ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurt Guenther <>
Subject Ant task basedir w/ inheritAll="false"
Date Thu, 06 Nov 2003 13:50:42 GMT

According to the docs:

"dir the directory to use as a basedir for the new Ant project. Defaults 
to the current project's basedir, unless inheritall has been set to 
false, in which case it doesn't have a default value. This will override 
the basedir setting of the called project."

However, here's a simple test case that shows that this is not true:


<project name="myproject" default="build" basedir=".">

  <target name="build">
    <ant dir="${basedir}/subproject" antfile="subproject.xml" 



<project name="subproject" default="build" basedir="/home/mickeymouse">

  <target name="build">



The result is:

[kurtg@seeker antbug]$ ant
Buildfile: build.xml


     [echo] "basedir=/home/kurtg/work/WebLogic/antbug/subproject"


Total time: 1 second

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message