|
Re: Writing file to .eclipse (Unix) or Application Data (Win32) [message #330661 is a reply to message #330656] |
Thu, 07 August 2008 17:07   |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Mark Melia wrote:
> Hi,
>
> Does anyone know how to write a file to a user's .eclipse directory in
> unix systems and the application data directory for eclipse in win32
> systems?
I don't know about unix, but Eclipse does not use an application data
directory on Windows. If you do something that triggers the so-called
"secure storage" facility (such as save a CVS password), it will write
something in a .eclipse directory under your home directory, but I don't
think there is anything special it does to accomplish that. I'd just use
something like:
String eclipseDir =
FilenameUtils.concat(System.getProperty("user.home"), ".eclipse");
String fileName = FilenameUtils.concat(eclipseDir, "myFile.txt");
FileUtils.writeStringToFile(new File(fileName), someData);
(using Jakarta IOUtils for FilenameUtils and FileUtils)
Hope this helps,
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.03929 seconds