// Load all resources of all plugins
for (PluginDescriptor descr : piRegistry) {
if (!descr.isSystemPlugin()) {
throw new BuildException("Non system plugin found " + descr.getId());
}
final PluginJar piJar = ((PluginDescriptorModel) descr).getJarFile();
log("Plugin: " + descr.getId() + piJar.resourceNames().size());
for (String name : piJar.resourceNames()) {
final ByteBuffer buf = piJar.getResourceAsBuffer(name);
final byte[] data = new byte[buf.limit()];
buf.get(data);
resources.put(name.intern(), data);
// log(" " + name);
}
piJar.clearResources();
}
blockedObjects.add(resources);
clsMgr.setSystemRtJar(resources);