List<URL> urlList = new ArrayList<URL>();
if(rioHome==null) {
logger.warn("RIO_HOME not defined, no default platformDir");
} else {
defaultDir = rioHome+ File.separator+"config"+File.separator+"platform";
PlatformLoader platformLoader = new PlatformLoader();
PlatformCapabilityConfig[] caps = platformLoader.getDefaultPlatform(rioHome);
for (PlatformCapabilityConfig cap : caps) {
URL[] urls = cap.getClasspathURLs();
urlList.addAll(Arrays.asList(urls));
}
String platformDir = (String)config.getEntry(COMPONENT, "platformDir", String.class, defaultDir);
if(logger.isDebugEnabled())
logger.debug("Platform directory set as {}", platformDir);
caps = platformLoader.parsePlatform(platformDir);
for (PlatformCapabilityConfig cap : caps) {
if (cap.getCommon()) {
URL[] urls = cap.getClasspathURLs();
urlList.addAll(Arrays.asList(urls));
}