Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (612)
Games in Android Showcase (172)
games submitted by our members
Games in WIP (658)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  default properties file  (Read 1472 times)
0 Members and 1 Guest are viewing this topic.
Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Posted 2004-04-28 11:12:48 »

A *loooong* time ago I remember playing with a file that went in your cwd or somewhere on the classpath that was loaded, by default, and the properties in it were stuffed into the system properties. I'm not sure if the method for loading some 'default' properties exists any more (I certainly don't use it), but I am sure it at least used to, and its one of those things thats is going to drive me mad if I don't find out Smiley. So, does anyone have any ideas what the file was called,, or i thought. Any ideas?


Offline blahblahblahh

JGO Coder

Medals: 1

« Reply #1 - Posted 2004-04-28 11:33:39 »

Don't you just use the package, and then programmatically store / retrieve / delete whatever you want?

Or am I missing the point entirely?

malloc will be first against the wall when the revolution comes...
Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #2 - Posted 2004-04-28 11:42:56 »

Thats what I do now, yes, but i'm sure there was a file that was automatically loaded into system properties if it existed.


Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

« Reply #3 - Posted 2004-04-28 12:08:38 »

Whenever I've used Preferences, all the get* methods need a default arg which is used if the actual value isn't found, which is how I handle defaults (plus a big class which defines all the defaults).

You could write a load of defaults, then export it as xml. Then distribute the xml and load it into preferences first time you run your app. Could cause problems if people go manually tinkering in the registry though.

[ - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #4 - Posted 2004-04-28 12:26:11 »

Ok, I think i mis stated this. I know how to load a properties files, I know about including defaults in the get methods, this is a specific query as to something that is bugging me. I'm sure I have used in the past a file, dumped in cwd or somewhere in the classpath, that no matter what code I ran, and with no adjustments to it, would automatically get loaded. Usefull for sticking in system properties for debugging/logging information that you don't have the code for, when you can be bothered to type -D on the command line in a startup script of some sort.

It's not about solving a problem, it's about remembering something I used to do. It's bugging me that I can't remember, even though i'm not going to use it. Like trying to remeber how to write text to the screen in pascal, i'm *never* going to need to use it again, but the other day it was bugging me as to how I used to do it.

Hope thats clearer, although english is my first language, i'm still crap at it Smiley


Offline kevglass

« JGO Spiffy Duke »

Medals: 272
Projects: 25
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #5 - Posted 2004-04-28 13:04:23 »


Hope thats clearer, although english is my first language, i'm still crap at it  

Had to quote it, Smiley

The file you're thinking of is "", we used it at Lucent for that LDAP thing, I don't think the java world still supports it, as I rememeber it was something to do with the ORB we were using at the time.. Visibroker? used to pull all the properties out and stick them in system properties. Or was it to do with the signing process...

Damn, now you've got me started..


Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

afikri (11 views)
2015-08-31 09:30:22

afikri (18 views)
2015-08-31 09:30:07

afikri (7 views)
2015-08-31 09:27:24

afikri (12 views)
2015-08-31 09:26:40

Roquen (16 views)
2015-08-29 11:30:54

GamerC4 (29 views)
2015-08-22 20:38:50

GamerC4 (25 views)
2015-08-22 20:37:18

GamerC4 (29 views)
2015-08-22 20:37:01

Kefwar (35 views)
2015-08-22 18:07:24

GamerC4 (26 views)
2015-08-22 01:00:24
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!