Re: Sanity check: framework Properties overriding
Re: Sanity check: framework Properties overriding
- Subject: Re: Sanity check: framework Properties overriding
- From: Susanne Schneider <email@hidden>
- Date: Wed, 28 Oct 2009 14:41:54 +0100
Hi Paul,
I've been trapped by this too. In contrast to normal programming
behaviour ant works the other way round: the first setting a property
will win. Once a property is set it cannot change to anything else!
Properties are no variables, see the ant manual for this.
Regards,
Susanne
Hello,
This may be completely normal, but I haven't run into it before.
I have a framework with a Resources/Properties file that contains a
particular property, say "foo=bar". I have an app that is dependent
on that framework. In the app's build.properties, it happens that I
have a coincidentally identical property name, say "foo=baz". In my
slightly modified build.xml (which imports the standard WOLips
build.xml and just overrides a few things), I use that foo property,
expecting it to have value 'baz', but it has value 'bar'. Am I just
imagining it, or are the properties in the framework's Resources/
Properties file being imported by Ant as build properties, and are
they overriding the definitions in the app's build.properties?
It's easily fixed, I've just removed the name collision. But if
that's the explanation, I didn't know that was happening.
--
Susanne Schneider
Coordinator secuTrial Development
iAS interActive Systems GmbH
Dieffenbachstraße 33 c, D-10967 Berlin
fon +49(0)30 22 50 50 - 498
fax +49(0)30 22 50 50 - 451
mail email@hidden
web http://www.interActive-Systems.de
----------------------------------------------------
Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
Sitz der Gesellschaft: Berlin
Amtsgericht Berlin Charlottenburg, HRB 106103B
----------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden