File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we use additional properties files?

 
Zafer Abu saeed
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the suncertify.properties file to persist the configurations
between runs of the program. (required)

I'm thinking about adding another properties files for the logging configurations, and for the GUI captions,
with their locations being hard-coded in the source.

I have two questions here:
1. Is it allowed to do these configurations without a GUI interface?
2. If yes, then is it allowed to use properties files other than the suncertify.properties? or we have to use it for all configurations?

Note this from the instructions:
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.


Thanks in advance.
 
Zafer Abu saeed
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't any body help ?
Is there any body passed the assignment with properties files
other than the suncertify.properties?
 
Barend Garvelink
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm thinking about adding another properties files for the logging configurations, and for the GUI captions,
with their locations being hard-coded in the source.


Keep in mind that you can not get bonus points for any extra work you do, you can only lose points for anything you do wrong. I would not translate GUI captions and things like that.
 
Ken Krebs
Ranch Hand
Posts: 451
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Zafer,

My approach to logging configuration was to set default values in code. I also supplied a logging.properties file with the assignment and told the tester about it's existence and purpose (administration and testing) in choices.txt. The tester was instructed to copy it to the working directory if he/she wanted to use it. My code then looks for its existence and uses it if it's there, otherwise logging only WARNING and SEVERE messages. I felt that using logging made it easy for the tester and helped me get a good score (389/400).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic