? how is it not true?
Peter
On Thursday 06 November 2003 13:50, Kurt Guenther wrote:
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|