Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » File copy under win7(Char":" is not allowed on path)
File copy under win7 [message #1735249] Thu, 16 June 2016 15:36 Go to next message
Yannick Loe is currently offline Yannick LoeFriend
Messages: 6
Registered: June 2016
Junior Member
Hello everybody,

whenever I try to copy a file by the installer, I will get an error (see the attached file. For me it looks like an error, that only appears on windows systems...
Belonging to the attached file, the sign ":" is not allowed.

Is there an workaround to remove "c:" ?

Here is my task, that I am using.
<setupTask
xsi:type="setup:ResourceCopyTask"
excludedTriggers="STARTUP MANUAL"
sourceURL="setups/myPlugin.jar"
targetURL="${installation.location|property}/plugins/myPlugin.jar"/>
<description>Resource creation</description>
</setupTask>
Re: File copy under win7 [message #1735257 is a reply to message #1735249] Thu, 16 June 2016 16:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31007
Registered: July 2009
Senior Member
These things should specify URIs but a file system path (especially on
Windows!) is not a URI. Try
${installation.location|uri}/plugins/myPlugin.jar which specifies a
file: URI which works uniformly on all platforms.


On 16.06.2016 11:48, Yannick Loe wrote:
> Hello everybody,
>
> whenever I try to copy a file by the installer, I will get an error (see the attached file. For me it looks like an error, that only appears on windows systems...
> Belonging to the attached file, the sign ":" is not allowed.
>
> Is there an workaround to remove "c:" ?
>
> Here is my task, that I am using.
> <setupTask
> xsi:type="setup:ResourceCopyTask"
> excludedTriggers="STARTUP MANUAL"
> sourceURL="setups/myPlugin.jar"
> targetURL="${installation.location|property}/plugins/myPlugin.jar"/>
> <description>Resource creation</description>
> </setupTask>
Re: File copy under win7 [message #1735292 is a reply to message #1735257] Fri, 17 June 2016 06:52 Go to previous messageGo to next message
Yannick Loe is currently offline Yannick LoeFriend
Messages: 6
Registered: June 2016
Junior Member
Hello Ed,

thank you for your fast response. Unfortunately, I still get an error, when I changed the targetURL to
${installation.location/plugins/myPlugin.jar|uri}

I followed the instructions on
https://wiki.eclipse.org/Eclipse_Oomph_Authoring

There is a new, but related exception:

Internal error:
java.net.URISyntaxException: Illegal character in scheme name name at index 0:
file:/C:/work/.../plugins/myPlugin.jar


org.eclipse.oomph.util.IORuntimeException: java.net.URISyntaxException: Illegal character in scheme name at index 0: file:/C:/work/eclipse-downloaded-installer/download-install/product-latest9/plugins/myPlugin.jar
at org.eclipse.oomph.util.IOUtil.newURI(IOUtil.java:422)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.getRemoteAttributes(ECFURIHandlerImpl.java:240)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.getAttributes(ECFURIHandlerImpl.java:132)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.exists(ECFURIHandlerImpl.java:445)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.exists(ExtensibleURIConverterImpl.java:378)
at org.eclipse.oomph.setup.impl.ResourceCopyTaskImpl.isNeeded(ResourceCopyTaskImpl.java:285)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.initNeededSetupTasks(SetupTaskPerformer.java:1593)
at org.eclipse.oomph.setup.ui.wizards.ConfirmationPage.initNeededSetupTasks(ConfirmationPage.java:352)
at org.eclipse.oomph.setup.ui.wizards.ConfirmationPage.enterPage(ConfirmationPage.java:256)
at org.eclipse.oomph.setup.ui.wizards.SetupWizard.pageChanged(SetupWizard.java:413)
at org.eclipse.jface.wizard.WizardDialog$9.run(WizardDialog.java:1505)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
at org.eclipse.jface.wizard.WizardDialog.firePageChanged(WizardDialog.java:1502)
at org.eclipse.jface.wizard.WizardDialog.update(WizardDialog.java:1308)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1234)
at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1208)
at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1197)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1194)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:885)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:425)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
at org.eclipse.jface.window.Window.open(Window.java:803)
at org.eclipse.oomph.setup.internal.installer.InstallerDialog.show(InstallerDialog.java:373)
at org.eclipse.oomph.setup.internal.installer.InstallerApplication.run(InstallerApplication.java:196)
at org.eclipse.oomph.setup.internal.installer.InstallerApplication.start(InstallerApplication.java:296)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: file:/C:/work/eclipse-downloaded-installer/download-install/product-latest9/plugins/myPlugin.jar
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.checkChar(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at org.eclipse.oomph.util.IOUtil.newURI(IOUtil.java:417)
... 46 more
Re: File copy under win7 [message #1735293 is a reply to message #1735292] Fri, 17 June 2016 07:00 Go to previous message
Yannick Loe is currently offline Yannick LoeFriend
Messages: 6
Registered: June 2016
Junior Member
Sorry, another mistake of me.... there was a space on char 0... ^^"
Feature request: automaticly trim uris Wink

So this issue is solved, thank you
Previous Topic:[SOLVED] Problems when installing setup task extensions
Next Topic:Oomph artwork
Goto Forum:
  


Current Time: Wed Apr 01 06:06:46 GMT 2020

Powered by FUDForum. Page generated in 0.01700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top