public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Config using File
@ 2007-02-06 21:09 Andrew Cagney
  0 siblings, 0 replies; only message in thread
From: Andrew Cagney @ 2007-02-06 21:09 UTC (permalink / raw)
  To: frysk

FYI,

In Java the Right Way to handle anything involving a file or path is to 
create a File object and manipulate that.  For instance, instead of:
    Config.getBinDir () + "/" + "fstack"
the coder should write:
    new File (Config.getBinDir (), "fstack");
which will take care of all the "/" portability mess.

I've switched most of the Config directory paths to return File, instead 
of String.  Two, namely getGladeDir() and getImagesDir() were not 
switched.  They are passed onto Java-GNOME and that currently takes a 
String.  Partially converting them turned into a rats nest :-)

Andrew

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-06 21:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-06 21:09 Config using File Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).