We have text files which are located in the .jar file of our plug-in data provider.
They are only needed for certain views - some are .json and some are .xml.
The files are read using the path which was retrieved as follows:
String baseDirString = this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile() + "files/textFiles";
Of course, with the new tomcat - this resolves to a bad path -
/usr/lib/vmware-vsphere-ui/server/work/Catalina/localhost/ROOT/eclipse/configuration/org.eclipse.osgi/317/0/bundleFilefiles/textFiles -
can someone suggest how to access these files? The bundleFile seems to be a container of some sort not a directory...
thanks
Cathy