This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Properties file design question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Properties file design question" Watch "Properties file design question" New topic
Author

Properties file design question

Ryan Jimmy
Greenhorn

Joined: Mar 18, 2012
Posts: 4
All,

For working with multiple input files say for example Test.txt,Test1.txt,Test2.txt should I need multiple property files or is it possible to configure in the same property file "sampleprops.xml". If I have to read multiple input files how to differentiate between them (with filenames)?
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19725
    
  10

It's entirely up to you whether you centralize your properties in a single properties file or whether you have one properties file for each input file you want to describe.

And yes, in most systems the easiest way to refer to a file is by its name. However your system may or may not follow that pattern; again, it's up to you to figure that out.

That may sound very vague, but consider the fact that all we know about your system is that it uses files.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Properties file design question
 
It's not a secret anymore!