ant-user mailing list archives

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

According to the docs:

http://ant.apache.org/manual/CoreTasks/ant.html

"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:

=================>>build.xml<<==========================

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

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

</project>

=================>>subproject.xml<<==========================

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

  <target name="build">
    <echo>"basedir=${basedir}"</echo>
  </target>

</project>

==========================================================

The result is:

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

build:

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

BUILD SUCCESSFUL

Total time: 1 second




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


Mime
View raw message