Copy files and folder from plugin to external location [message #290253] |
Mon, 22 August 2005 14:06 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02067 seconds