|
Re: work with read only data location [message #496180 is a reply to message #496166] |
Mon, 09 November 2009 09:56 |
|
Hi,
you can set it programatically in your Application.java:
Location instanceLoc = Platform.getInstanceLocation();
if (!instanceLoc.isSet()) {
instanceLoc.set(new URL(
"file", null, System.getProperty("user.home") + "\\MyApplication"),
false);
}
This snippet sets the location to your user.home/MyApplication Folder. You can change that of course.
Important that you add the parameter -data @noDefault, otherwise the location will be set automatically and once it is set it cant be changed.
Greetz,
Thomas
|
|
|
|
Re: work with read only data location [message #496188 is a reply to message #496183] |
Mon, 09 November 2009 10:23 |
|
Hey Bella-Stella ,
lol sorry for that.
Do you mean that you want to define your "workspace" in a different folder than your metafile? Or what do you mean with data location?
Maybe you can have a look at
Platform.getUserLocation();
maybe this is what you mean by data location?
Greetz
Thomas
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04154 seconds