Issues with ResourceCreationTask [message #1831685] |
Wed, 26 August 2020 14:37 |
Eclipse User |
|
|
|
I just started with creating an oomph installer and it worked well, but there are a lot of things that confuse me.
I'm trying to suppress the welcome screen.
In the Project Setup I have this:
</setupTask>
<setupTask
xsi:type="setup:ResourceCreationTask"
targetURL="${workspace.location/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs}">
<content>
eclipse.preferences.version=1
showIntro=false
</content>
</setupTask>
I also have a WorkspaceTask in the products setup, so I'm prompted for workspace.
<setupTask
xsi:type="setup:WorkspaceTask"
id="workspace">
<description>Your Workspace</description>
</setupTask>
But the welcome page is of course shown during the first start, right before I'm prompted to enter the workspace path.
Another problem I have with ResourceCreationTask appears when I want to have "<" inside my content. It seems that < is interpreted as a special symbol. Is there a way to escape it?
[Updated on: Wed, 26 August 2020 14:58] by Moderator Report message to a moderator
|
|
|
|
Re: Issues with ResourceCreationTask [message #1831706 is a reply to message #1831691] |
Thu, 27 August 2020 06:36 |
Eclipse User |
|
|
|
Thanks for your reply.
Ed Merks wrote on Wed, 26 August 2020 16:36
I'm confused by your comment about the welcome page being shown before the prompt for a workspace path. If you're prompted for a workspace path, then the IDE isn't showing yet so there cannot be a welcome page...
You are right. I confused it with a prompt for another variable. Sorry for that.
Ok, I updated the installer first before proceeding.
The file is created and looks almost perfect:
eclipse.preferences.version=1
showIntro=false%
and the welcome page is not shown. I guess that didn't work before because of my confusion about different things... But I experience further problems with the ResourceCreationTask which probably show that I didn't understand some fundamental stuff.
Now I see this exception:
Performing Resource Creation /home/me/workspace-tmp-54321/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
Creating platform:/resource/home/me/workspace-tmp-54321/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource '/home' does not exist.
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$PlatformResourceOutputStream.createContainer(PlatformResourceURIHandlerImpl.java:80)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$PlatformResourceOutputStream.createContainer(PlatformResourceURIHandlerImpl.java:73)
That path is obviously incorrect, but I don't understand why it is prefixed with /resource.
The stacktrace states that
((IFolder)container).create(force, keepHistory, progressMonitor);
throws an exception. But, as I mentioned before, the file does exist.
[Updated on: Thu, 27 August 2020 08:08] by Moderator Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02729 seconds