|
Re: ${installation.location} points to base path [message #1727148 is a reply to message #1727147] |
Sun, 20 March 2016 09:44 |
|
Am 20.03.2016 um 10:25 schrieb kon f:
> Hey :p
> I'm try to set the eclipse workspace name (/instance/org.eclipse.ui.ide/WORKSPACE_NAME) using the variable
> ${installation.location|lastSegment}. Unfortunately, during STARTUP it points to the base folder e.g. "C:\_dev". It's
> strange, as my file creation task during the BOOTSTRAP goes correctly to e.g. "C:\_dev\project-develop2". Is this
> expected behavior?
> As a workaround I use then workspace location (set to "C:\_dev\project-develop2\ws") with the following variable:
> ${workspace.location|basePath|lastSegment}
I use this task to set the workspace name:
<?xml version="1.0" encoding="UTF-8"?>
<setup:PreferenceTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
key="/instance/org.eclipse.ui.ide/WORKSPACE_NAME"
value="${installation.location|lastSegment|allcap}"/>
And it works perfectly. I don't have enough information to tell what's going wrong for you. Can you paste a screenshot
of the installer's Confirmation page with the PreferenceTask selected?
BTW., I also have this task in my user.seup, which sets the workspace location to my preferred pattern even for
project-less installs:
<?xml version="1.0" encoding="UTF-8"?>
<setup:ResourceCreationTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
excludedTriggers="STARTUP MANUAL"
content="eclipse.preferences.version=1
RECENT_WORKSPACES_PROTOCOL=3
RECENT_WORKSPACES=${installation.location/ws|property}
MAX_RECENT_WORKSPACES=10
SHOW_WORKSPACE_SELECTION_DIALOG=false
"
targetURL="configuration:/.settings/org.eclipse.ui.ide.prefs"/>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
Re: ${installation.location} points to base path [message #1727301 is a reply to message #1727167] |
Mon, 21 March 2016 21:31 |
kon f Messages: 152 Registered: March 2012 |
Senior Member |
|
|
Hey Eike,
just to make it simpler, I just installed from one project file.
The first screenshot shows the correct path (also for resource creation tasks on the bottom).
From here, it's getting strange since WORKSPACE_NAME is set to ${installation.location|lastSegment}
As the path has been changed, the files that were already created during bootstrap are created again (because they do not exist, right?).
At the end, I figured out that the wrong path is caused from this task (if I remove it works as expected):
<setupTask
xsi:type="setup:EclipseIniTask"
excludedTriggers="STARTUP MANUAL"
option="-Dosgi.configuration.area="
value="${installation.location/configuration}"
vm="true"/>
The installer performs correct and as eclipse starts .. is somehow uses the parent path C:\_dev as installation location ... Am I doing it wrong ?
Thank you!
Kon
-
Attachment: 01.png
(Size: 86.04KB, Downloaded 1037 times) -
Attachment: 02.png
(Size: 148.95KB, Downloaded 977 times) -
Attachment: 03.png
(Size: 146.14KB, Downloaded 955 times)
[Updated on: Mon, 21 March 2016 21:57] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03118 seconds