private void addResources(JavaArchive archive, VirtualFile basedir, VirtualFile resdir) throws IOException { String basepath = basedir.getPathName(); for (final VirtualFile child : resdir.getChildrenRecursively()) { if (child.isDirectory()) continue; String path = child.getPathName(); path = path.substring(basepath.length()); addResource(archive, path, child); } }
if (file.isDirectory())