public static String getFindBugsEnginePluginLocation ( ) { // findbugs.home should be set to the directory the plugin is // installed in. URL u = plugin . getBundle ( ) . getEntry ( "/" ) ; try { URL bundleRoot = FileLocator . resolve ( u ) ; String path = bundleRoot . getPath ( ) ; if ( FindBugsBuilder . DEBUG ) { System . out . println ( "Pluginpath: " + path ) ; //$NON-NLS-1$ } if ( path . endsWith ( "/eclipsePlugin/" ) ) { File f = new File ( path ) ; f = f . getParentFile ( ) ; f = new File ( f , "findbugs" ) ; path = f . getPath ( ) + "/" ; } return path ; } catch ( IOException e ) { FindbugsPlugin . getDefault ( ) . logException ( e , "IO Exception locating engine plugin" ) ; } return null ; }
Find the filesystem path of the FindBugs plugin directory .