• 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: NSProperties order of priority (app/framework/command line)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSProperties order of priority (app/framework/command line)?


  • Subject: Re: NSProperties order of priority (app/framework/command line)?
  • From: Wolfram Stebel <email@hidden>
  • Date: Tue, 29 Nov 2005 11:55:50 +0100
  • Thread-topic: NSProperties order of priority (app/framework/command line)?

Am 29.11.2005 1:59 Uhr schrieb "Alan Ward" unter <email@hidden>:

>
> I thought it was 1, 4, 2, 3 (i.e. ~/WebObjects.properties has higher
> precedence than
> everything other than command line?
>
> No?
>
> Alan
>
> On Nov 28, 2005, at 5:53 PM, Chuck Hill wrote:
>
>> I have never used the last two.  They can be overridden in code.
>> Other than that, this is my understanding as well.
>>
>> Chuck
>>
>>
>> On Nov 28, 2005, at 3:57 PM, Lachlan Deck wrote:
>>
>>
>>> Hi all,
>>>
>>> My reading of the NSProperties API leads me to believe that the
>>> order of priority for preferences are as follows (but it's not
>>> explicitly stated)...
>>>
>>> 1) Command line args
>>> 2) Application Properties file
>>> 3) Framework Properties file
>>> 4) ~/WebObjects.properties
>>>
>>> i.e., I assume that the ones higher up the chain (e.g., command
>>> line args) take priority over the others and so on. Is that correct?
>>>
>>> Thanks.
>>>
>>> with regards,
>>> --
>>>
>>> Lachlan Deck
I'm not sure about the above, but there is still a way to merge additional
properties into the already loaded properties via
NSProperties.setPropertiesFromArgv ( String args [] );
as i showed in my PropDemo WOApp, dowloadable from
http://www.bugs-and-errors.de/
This allows also updating of properties at runtime.

If this helps...... :-)

regards

Wolfram


 _______________________________________________
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: NSProperties order of priority (app/framework/command line)?
      • From: Lachlan Deck <email@hidden>
References: 
 >Re: NSProperties order of priority (app/framework/command line)? (From: Alan Ward <email@hidden>)

  • Prev by Date: Re: SubComponents and Submits
  • Next by Date: Re: SubComponents and Submits
  • Previous by thread: Re: NSProperties order of priority (app/framework/command line)?
  • Next by thread: Re: NSProperties order of priority (app/framework/command line)?
  • Index(es):
    • Date
    • Thread