lundi 2 mars 2015

Eclipse plugin dev: make bundle to explode inside `plugins` folder


Vote count:

0




There is old Eclipse Image Viewer plugin http://ift.tt/1Azbau1 that I want to update.


After adding maven/tycho build and building against Kepler.


It works in new Eclipse instance (project -> run as Eclipse application), but when installing here is an issue #6



org.eclipse.swt.SWTException: i/o error (java.io.FileNotFoundException: file:\D:\Progs\Eclipses\eclipse-standard-luna-R-win32-x86_64\eclipse\plugins\nu.psnet.quickimage.plugin_1.1.0.201503030326.jar!\icons\previous.gif (文件名、目录名或卷标语法不正确。))



Looking at the code there is line



iconsdir = FileLocator.resolve(QuickImagePlugin.getDefault().getBundle().getEntry("/")).getFile() + "icons" + File.separator;



that gets path like that.


The problem is that should work if the bungle jar becomes folder like nu.psnet.quickimage_1.0.3.2



asked 22 secs ago







Eclipse plugin dev: make bundle to explode inside `plugins` folder

Aucun commentaire:

Enregistrer un commentaire