Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PDE FileLocator(FileLocator.resolve(url).toURI();)
PDE FileLocator [message #895412] Thu, 12 July 2012 18:46 Go to next message
Paul Christopher is currently offline Paul ChristopherFriend
Messages: 5
Registered: August 2010
Junior Member
I am having an issue when deploying my plugin.

I have code written below to find a build.xml file. Locally it works fine because the there are no white spaces in the absolute path but when deployed it has "Program Files" in the path so it fails with a URLSyntaxException from the FileLocator. How do I get around this problem?

Bundle bundle = Platform.getBundle("_WSDL_GENERATOR");
url = bundle.getResource("build.xml");
uri = FileLocator.resolve(url).toURI();
Re: PDE FileLocator [message #898569 is a reply to message #895412] Thu, 26 July 2012 15:46 Go to previous messageGo to next message
Paul Christopher is currently offline Paul ChristopherFriend
Messages: 5
Registered: August 2010
Junior Member
Nobody has encountered this issue during PDE development?
Re: PDE FileLocator [message #1715467 is a reply to message #898569] Mon, 23 November 2015 21:14 Go to previous message
Thearon Helgeson is currently offline Thearon HelgesonFriend
Messages: 1
Registered: November 2015
Junior Member
I encountered this issue - it doesn't appear to happen in all cases of an Eclipse instance being installed under the 'Program Files' directory.

Was there ever a good solution found for this?

Previous Topic:How to add Image to the toolbar
Next Topic:PDEBuild - help customizing feature build's .zip archive name
Goto Forum:
  


Current Time: Tue Mar 19 03:21:51 GMT 2024

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

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

Back to the top