Re: Obtaining launch arguments in XCode/java (NSProperties?)

From: Brendan Duddridge (brenda..lickspace.com)
Date: Fri Jan 28 2005 - 20:21:41 EST

  • Next message: christian mühlethaler: "Re: change signatures for fields and methods"

    No. We just store all our properties in the application or framework in a
    file called "Properties". Works fine. It also works with properties passed
    in on the command line from WO Monitor.

    ___________________________

    Brendan Duddridge

    ClickSpace Interactive Inc.
    Suite L100
    239 - 10th Ave SE
    Calgary, AB T2G 0V9
    Canada
    (403) 277-5591
    http://www.clickspace.com/

    > From: "John C. Beatty" <jcbeatt..waterloo.ca>
    > Date: Fri, 28 Jan 2005 16:19:45 -0500
    > To: <woproject-de..bjectstyle.org>
    > Cc: Brendan Duddridge <brenda..lickspace.com>
    > Subject: Re: Obtaining launch arguments in XCode/java (NSProperties?)
    >
    >> We usually use something like this:
    >>
    >> String myValue = NSProperties.getProperty("MyParam");
    >>
    >> Or with a built-in default value:
    >>
    >> String myValue = NSProperties.getProperty("MyParam", "MyDefaultValue");
    >>
    >> I read somewhere that it's better to use NSProperties, especially if you
    >> want to deploy into a servlet environment.
    >
    > Don't you have to call NSProperties.setPropertiesFromArgv(argv)
    > first? If I do, I crash; if I don't none of my parameters appear ...
    > --
    > ------------------------------
    > Prof. John C. Beatty
    > School of Computer Science
    > University of Waterloo
    > 200 University Avenue
    > Waterloo, Ontario
    > Canada N2L 3G1
    > +1 (519) 888-4567 x 4525 voice
    > +1 (519) 885-1208 fax
    >



    This archive was generated by hypermail 2.0.0 : Fri Jan 28 2005 - 20:22:04 EST