Skip to content

Commit

Permalink
WELDSE-10: Applied patch from Koichi Kobayashi to support beans.xml f…
Browse files Browse the repository at this point in the history
…iles from multiple archives.
  • Loading branch information
peteroyle committed Apr 28, 2010
1 parent 5965969 commit 090b009
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -139,14 +139,15 @@ private void handleArchiveByFile(File file) throws IOException
{
log.trace("archive: " + file);

String archiveUrl = "jar:" + file.toURI().toURL().toExternalForm() + "!/";
ZipFile zip = new ZipFile(file);
Enumeration<? extends ZipEntry> entries = zip.entries();

while (entries.hasMoreElements())
{
ZipEntry entry = entries.nextElement();
String name = entry.getName();
handle(name, getClassLoader().getResource(name));
handle(name, new URL(archiveUrl + name));
}
}
catch (ZipException e)
Expand Down

0 comments on commit 090b009

Please sign in to comment.