• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Question about suncertify.properties

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory."
In my program, I did't write any code to set the property, but the program works well, it doesn't need any property setting, since there is "must", so do I need to think about adding a piece of code to set the properties?
My project is URLyBird
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi HaoZhe,
Is there any possibility that the user may choose to have the database in a different directory than the jar file? If so, can they specify where the database is?
Is there any possibility that the user may have the server running on one machine, and the client running on another machine? If so, can they specify the hostname / IP address of the server machine somehow?
Is there any possibility that the user may choose to run the server on a different port than 1099? If so, can they specify the port number on the server and on the client?
If the answers to any of these questions was "yes", then what happens when they shut down the application and then start it up again? Do they have to re-enter the information?
According to your instructions, this information should be remembered (persisted) between shutting down and starting up the program (runs of the program).
So to remember the information, you are going to have to store it. Again, your instructions are very clear about how you should store it: the information must be in a file called suncertify.properties which must be located in the current working directory.
If you do not follow these instructions, you will fail. These are must instructions, not optional instructions.
Note that these instructions require you to store the information in the current working directory - not necessarily the directory where your jar file is stored or the directory where your database is stored.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic