Finally, it turned out that I should specify the path in the next line after -data. Specifying the path in next line is the key here. So, in your application .ini file, it should look like:
-data
C:\MyAppWorkspace
Also, make sure that this (or any other program argument) appear before vm arguments.
But, we did not want to hardcode the path and instead wanted to point it to users home directory. For this, you could use:
-data
@user.home/MyAppWorkspace
This program argument can also be supplied as command line parameter. For example,
In your RCP application, you can just specify these program arguments in "Launching" tab in your application .product editor. When you export your product, it will put the appropriate entry in your application .ini file.
6 comments:
can u just help me setting up hibernate in eclipse & get the simple program done in struts 2
Thanks.
i tried this one and noticed that there is a .metadata folder in the new location BUT the RCP does NOT load the stored settings correct... actually it simply creates the default every time i start it up (works fine if i do not modify the path...) any ideas?
@lumo - Can you add comment on what lines you added to which file?
Try adding the following to the beginning of your .ini file:
-data
@user.home/MyAppWorkspace
i am running a product from workspace (i do not build an export yet, therefore i have no ini file.
therefore i simply changed the run configuration (afaik this is the same as the ini file) and added those program arguments:
-data @user.home/MyApplicationName
further i tried to change the working directory (same tab on run configuration > arguments)
${system_property:user.home}/MyApplicationName
in both cases the working directory is changed and correct, BUT it does not save the changed layouts as mentioned above
Thanks for this! Adding `-data @user.home/...` to my product's Launching Arguments worked exactly as expected. One can confirm it by using the product export wizard and then running the result.
Thank you for sharing very informatics and useful post about very useful info.... Turbo-IVP (Invoice Validation Portal) and Turbo eSigner
Post a Comment