ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurt Guenther <iamku...@bellsouth.net>
Subject Re: Ant task basedir w/ inheritAll="false"
Date Thu, 06 Nov 2003 14:22:12 GMT
> in which case it doesn't have a default value. 

I suppose this could be ambivalent, but it seems (to me) without a default value, it should
pick up the basedir parameter in the subproject project element (ie, '/home/mickeymouse').

Hold it,  I just had a matrix moment.  The default applies to 'dir' and not 'basedir'.  Got
it. 

--Kurt



peter reilly wrote:

>? 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
>
>
>  
>



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


Mime
View raw message