Menu

#5 net.sf.anupam --> org.csvobjects & remove hardcoded paths?

open
nobody
None
5
2007-03-19
2007-03-19
Anonymous
No

this may sound ticky-tack - but as I have been working (for example to create a formatter and circumvent the 'locked/hardcoded path to' net/sf/anupam/csv/formatters/csv-formatter-config.xml

I find myself pulling classes out of your jar and then recreating a great many "anupam" (net.sf.anupam.xxxxx) directories in eclipse.

if there is an intent to rename your paths to "org.csvobjects.xxxxx" - would you simultaneously remove all hardcoded paths and place within a properties file.

is this not the commonly accepted method?

if you haven't yet used Properties - code snippet below:

Properties props = new Properties();
InputStream input = CSVParserTest.class.getClassLoader().getResourceAsStream("resources/bank.properties");
props.load(input);
log.debug(props);
Enumeration e = props.propertyNames();
while (e.hasMoreElements()) {
String name = (String) e.nextElement();
String value = props.getProperty(name);
log.info(new StringBuffer().append("\n").append(name).append("=").append(value));
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.