ResourceConfig config = new ResourceConfig(DependencyRestService.class);
HttpServer server = this.startServer( config ) ;
if (Desktop.isDesktopSupported())
{
Desktop desktop=Desktop.getDesktop();
File tempDir = com.google.common.io.Files.createTempDir();
tempDir.deleteOnExit();
this.transferResourceToTmp( "clashInspectorStyle", "css",tempDir,false );
this.transferResourceToTmp( "jquery-1.11.0", "js",tempDir ,false);
this.transferResourceToTmp( "main", "js",tempDir,true );
this.transferResourceToTmp( "openDepNode", "png",tempDir,false );
this.transferResourceToTmp( "openDepNode_hasWinner", "png",tempDir,false );
this.transferResourceToTmp( "clashinspectorLogo", "jpg",tempDir,false );
this.transferResourceToTmp( "fhReutlingenLogo", "jpg",tempDir,false );
this.transferResourceToTmp( "legendArrowHasDependencies", "png",tempDir,false );
this.transferResourceToTmp( "legendArrowHasUnsafeDependencies", "png",tempDir,false );
this.transferResourceToTmp( "legendArrowHasCriticalDependencies", "png",tempDir,false );
this.transferResourceToTmp( "legendArrowHasUnresolvedDependencies", "png",tempDir,false );
this.transferResourceToTmp( "legendScopes_long", "png",tempDir,false );
this.transferResourceToTmp( "legendOptional", "png",tempDir,false );
desktop.browse(this.transferResourceToTmp( "clashInspector", "html",tempDir,false ));
}
else
{
super.getLog().warn( "Couldn't open File with default-browser. Please open file manually under: " + System.getProperty("java.io.tmpdir")+"clashInspector.html" );
}