Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

vSphere Client SDK V6.7U2- local plugin, finding files which are located in provider.jar is broken

$
0
0

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


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>