ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Alberto Fernandez <>
Subject RE: Including other antfiles
Date Fri, 11 Aug 2000 18:00:26 GMT
> From: Stefan Bodewig []
> >>>>> "JAF" == Jose Alberto Fernandez <> writes:
>  JAF> The only meaningful thing in my opinion is for properties in the
>  JAF> subproject to supercede any properties of the same name in the
>  JAF> calling project, except for those properties mentioned within
>  JAF> the calling <ant> task.
> This opinion seems to be shared by a lot of people and I tend to
> agree, but would add properties the user has defined by command line
> parameters to the list of properties that should supersede sub project
> properties. This way I can make sure -Djava.compiler=jikes will use
> Jikes on all sub projects as well.

Well I would argue you can get the same effect by doing:
    <ant .......>
	<property name="java.compiler" value="${java.compiler}" />

My point is that in general the meaning of property "X" in project "A" has
no relation with the meaning of property "A" on subproject "B". This is true
whether you set it in the command line or not. And hence we shouldn't

I could envision having a magic property "ant.inherit" whose value is a list
of properties that should be inherited from project to subproject as an
implicit declaration as above, you could set that on your preference
property file the same way some people set "java.compiler" today.

Jose Alberto

> I think if we should make properties mutable again (maybe with some
> restrictions, this is something I really want to dig into after my
> vacation), we get exactly this behavior - just make sure properties
> that have been "user" properties in the parent get copied into the new
> project as "user" properties as well.
> Stefan

View raw message