try {
ver = configuration.getAttribute(Plugin.ATTR_SELECTED_JETTY_VERSION, "");
} catch (CoreException e) {
e.printStackTrace();
}
Plugin plg = Plugin.getDefault();
if(Plugin.CONTAINER_RJR_JETTY.equals(entry.getVariableName())){
if(plg.supportJetty(ver, IJettyPackageProvider.TYPE_JETTY_BUNDLE)){
return plg.getPackages(ver, IJettyPackageProvider.TYPE_JETTY_BUNDLE);
}else{
return plg.getDefaultPackages( IJettyPackageProvider.TYPE_JETTY_BUNDLE);
}
}
if(Plugin.CONTAINER_RJR_JETTY_JNDI.equals(entry.getVariableName())){
if(plg.supportJetty(ver, IJettyPackageProvider.TYPE_UTIL)){
return plg.getPackages(ver, IJettyPackageProvider.TYPE_UTIL);
}else{
return plg.getDefaultPackages( IJettyPackageProvider.TYPE_UTIL);
}
}
return new IRuntimeClasspathEntry[0];
}