Results 1 to 3 of 3

Thread: [Java] Loading properties

  1. #1
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Question [Java] Loading properties

    Is there a way to load contents of .properties file so, that order of the entries which
    they appear in the file could be preserved? Properties is a instance of Hashtable and
    Maps doen't preserve order like Lists do..

    I'd like to accomplish this without
    * modifying existing .properties file
    * extending Properties and overriding put() or other logic methods

    Are there any corresponding Apache module that would load properties into List instead?

    Thanks.

  2. #2
    Join Date
    Oct 2005
    Location
    IN, USA
    Beans
    274

    Re: [Java] Loading properties

    I think this will do what you are describing:

    http://jakarta.apache.org/tapestry/t...roperties.html

  3. #3
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: [Java] Loading properties

    Yes, thanks. Althought I decided to evetually drop the idea, it was too error prone
    for changes.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •