The "One Laptop Per Child" project has a great device ready to ship, but there's no Java on there. Let's think about working together to put Java on OLPC!
Re: Writing file to .eclipse (Unix) or Application Data (Win32)
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:
Re: Writing file to .eclipse (Unix) or Application Data (Win32)
Depending on what you want to do, class org.eclipse.core.runtime.Platform
has several static functions that may help: getInstanceLocation(),
getUserLocation(), and several other getXxxLocation() functions.
Writing file to .eclipse (Unix) or Application Data (Win32)
At 10:22 AM on Aug 7, 2008, Mark Melia wrote:
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?
Thanks,
Mark
2 replies so far (
Post your own)
Re: Writing file to .eclipse (Unix) or Application Data (Win32)
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
Re: Writing file to .eclipse (Unix) or Application Data (Win32)
Depending on what you want to do, class org.eclipse.core.runtime.Platformhas several static functions that may help: getInstanceLocation(),
getUserLocation(), and several other getXxxLocation() functions.
I would also recommend reading
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/multi_user_installs.html
-- it gives some background on a number of different ways that an Eclipse
installation can be configured.
- Mike