Hi all,
I've gone through these two threads
NX :-P ackaging suncertify.properties and
Properties Files and ResourceBundle. I would like to know whether my conclusions are all correct.
Somewhere in those threads it says:
runme.jar is for both client and server, that optional mode argument determines what runs.
so "java -jar runme.jar" will run your GUI but attempt a network connection, "java -jar runme.jar alone" will run in standalone mode, and "java -jar runme.jar server" will run your server.
I have no doubts about that. The specs are clear.
I also presume that I should not pack a properties file into the JAR file I will submit ([spec] "The JAR file must have the following layout and contents in its root:"). This makes me believe the examiner will extract runme.jar and run the programs in the console.
The spec also mandates that all configuration information be stored in a file called suncertify.properties which must be locacted in the current working directory.
Conclusion:
The single file suncertify.properties stores all properties for client/server whether standalone or not. The file will therefore contain keys such as suncertify.db.datapath, suncertify.client.serverport, suncertify.server.port, etc.
When a program (i.e. client or server) is started for the first time,
most likely it won't find a properties file because there is none -unless the examiner has created one himself ;-)
(In my case)Both server and client come with a GUI that allows to make persistent changes to the properties.
No further implications as only one program accesses a properties file at the time.
Please let me know whether I'm on the right track.
Regards,
Marcel