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 14:46 Go to next message
Paul Christopher is currently offline Paul Christopher
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 11:46 Go to previous message
Paul Christopher is currently offline Paul Christopher
Messages: 5
Registered: August 2010
Junior Member
Nobody has encountered this issue during PDE development?
Previous Topic:How to get Project info. based on tree node expanded(not necessarliy selected) ?
Next Topic:PDE build clarification
Goto Forum:
  


Current Time: Mon Jul 28 20:33:24 EDT 2014

Powered by FUDForum. Page generated in 0.02064 seconds