[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: How can I read or write the file in jar?
|
You can't write to a Jar, but you can read from it by getClass().getResourceAsStream("/foo/property.xml") and then dealing with the returned InputStream. If you want to do writing of data then use the plugin's state location (from the bundle's getPluginStateLocation() if I remember) to read/write the file, and then use the property.xml as a template if there's no file in the property state location.
Alex.