Hi Steve, see my comments below.

On 3/15/07, Steve Loughran <[EMAIL PROTECTED]> wrote:

easyproglife wrote:
> Hi.
>
> I have properties resolve and evaluate problem:
>
> I have 2 projects: "project" and "common".
> "common" contains default properties, while "project" contains its own
> properties plus some properties to override the default properties from
> "common".
>
> For example:
> "project" set these properties: src.dir, build.dir
> "common" set these properties: build.dir (the default one) and dist.dir(=
> ${build.dir}/dist).
>
> In my build.xml I first read "project" properties and then "common"
> properties, allowing "project" properties to override "common"
properties.
>
>
> The problem arises when I use unresolved properties in "project" for
> example:
> "project" contains: dist.dir (=${build.dir}/dist2). It overrides default
> dist.dir of "common" but uses the unresolved (yet) "build.dir" defined
in
> "common".
> "common" contains: as above: build.dir and dist.dir.
>
> I end up with not-fully-resolved "dist.dir".
>

yes you do, don't you.

Fully recursive reference resolution is something we do at work for
deployment, but it does radically change the ordering and behaviour of
how things work ... we dont want to go there in Ant.


Can you please briefly explain what are the problems arise on recursive
reference resolve? What ordering and behavior it changes radically?

I need a few examples to understand why it is complicated.

easyproglife


I don't see any easy solution to letting a project override inherit
something from the common.properties file without you copying that value
over.

-steve


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to