• 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: Application Properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application Properties


  • Subject: Re: Application Properties
  • From: email@hidden (Anjo Krank)
  • Date: Fri, 11 Jul 2003 08:52:36 +0200
  • Xx-reply-to: email@hidden

String foo = System.getProperty("foo");

Am Freitag, 11.07.03, um 07:25 Uhr (Europe/Berlin) schrieb Goodbye Bill:

Let me try to clarify this. Here is the contents of my Properties file...

    # Add application properties here

# These properties are loaded into the Java system properties for the
application
# These properties may be overridden at the command-line
# The properties listed are only examples, and are not intended to be
comprehensive
# Remove the leading '#' to uncomment a property


    #WOAutoOpenInBrowser=true
    #WOAutoOpenClientApplication=true
    #WOPort=55555
    #WODebuggingEnabled=true
    #WODirectConnectEnabled=true
    #WOAllowRapidTurnaround=true
    #WOSessionTimeOut=3600
    #WOAllowsConcurrentRequestHandling=false

    MySMTPHostName="smtp.nowhere.com"
    MySMTPFromAddr="email@hidden"
    MySMTPAccount="noreply"
    MySMTPPassword="password"

As you can see, I have added my own properties to the file. Is there any
way to simply call the properties that are in this file? Maybe something
like... Application("propertyname").toString()


Thanks,
"Bill"


On 7/10/03 2:40 PM, "Art Isbell" <email@hidden> wrote:

On Thursday, July 10, 2003, at 05:52  AM, Cliff Tuel wrote:

Is it possible to add custom (non-WebObjects) properties in the
Properties
file?  If so, what is the syntax to access them at runtime?

Syntax: see java.io.Properties API: see com.webobjects.foundation.NSProperties

And by taking advantage of
com.webobjects.foundation.NSPropertyListSerialization, you can extend
Properties from supporting only string data to to supporting arrays and
dictionaries in ASCII plist format
(http://developer.apple.com/documentation/Cocoa/Conceptual/
PropertyLists/Concepts/OldStylePListsConcept.html#//apple_ref/doc/uid/
20001012/BBCBDBJE).


Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.



Cheers, Anjo
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Application Properties (From: Goodbye Bill <email@hidden>)

  • Prev by Date: Re: Application Properties
  • Next by Date: No Unique Indexes in EO?
  • Previous by thread: Re: Application Properties
  • Next by thread: EODisplayGroup problem
  • Index(es):
    • Date
    • Thread