• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sanity check: framework Properties overriding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Sanity check: framework Properties overriding
      • From: Paul Hoadley <email@hidden>
  • Prev by Date: Re: Eclipse 3.5.1 and WOLips and 32bit
  • Next by Date: Re: Eclipse 3.5.1 and WOLips and 32bit
  • Previous by thread: Re: Eclipse 3.5.1 and WOLips and 32bit
  • Next by thread: Re: Sanity check: framework Properties overriding
  • Index(es):
    • Date
    • Thread