Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Copy files and folder from plugin to external location
Copy files and folder from plugin to external location [message #290253] Mon, 22 August 2005 14:06
Eclipse UserFriend
Originally posted by: vikasp.india.hp.com

Hi,

I have a eclipse plugin which has lot of project specific jar files and
xml files which has to be copied from eclipse plugin directory to selected
external location.

I am currently doing

Path localPath = new Path("/jar/xercer.jar);
Bundle bundle = Platform.getBundle("TestPlugin");
URL fileURL = Platform.find(bundle, localPath);
FileInputStream istream = fileURL.openStream();

Path localPath = new Path("/jar/tomcat.jar);
Bundle bundle = Platform.getBundle("TestPlugin");
URL fileURL = Platform.find(bundle, localPath);
FileInputStream istream = fileURL.openStream();

Finally copying all these file to the destination location. Is there a way
by which i can copy the whole "/jar/" folder from plugin directory to
destination, without calling getBundle of files individually.

Thanks
Vikas
Previous Topic:Dependencies on development plug-ins don't work in runtime workspace
Next Topic:How to Invoke extensions conditionally?
Goto Forum:
  


Current Time: Thu Apr 25 23:55:21 GMT 2024

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

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

Back to the top