public URL getIndexPage ( ) { // In the current impl dependencies are checked first, so the plugin itself // will add the last entry in the getResources result. URL idx = null ; try { Enumeration < URL > en = classLoader . getResources ( "index.jelly" ) ; while ( en . hasMoreElements ( ) ) idx = en . nextElement ( ) ; } catch ( IOException ignore ) { } // In case plugin has dependencies but is missing its own index.jelly, // check that result has this plugin's artifactId in it: return idx != null && idx . toString ( ) . contains ( shortName ) ? idx : null ; }
Returns the URL of the index page jelly script .