| Right, I understand the concerns about using URLs. The point I was trying to make was there isn't a nice clean way to do this. Or at least I couldn't think of a way. The builders won't be able to purely rely on the DeployableModule interface for resolving and processing a module wether its a JarFile or an exploded IDE specific filestructure. So since URLs are not an option we can't represent paths inside jars or paths in a directory in a common way. So inside our builders, taking a more simpler ConnectorBuilder for example... the following piece of code cannot be pushed out into a call in the DeployableModule interface... Enumeration entries = moduleFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); URI target = targetURI.resolve(entry.getName()); if (entry.getName().endsWith(".jar")) { earContext.addInclude(target, moduleFile, entry); } else { earContext.addFile(target, moduleFile, entry); } } and in all the module builders where this type of traversing is done, we will have to have something like... if(deployableModule.isArchived()) { JarFile moduleFile = new JarFile(deployableModule.getRoot()); //then do code above } else { File[] = deployableModule.getResources() //moduleFile being an impl of DeployableModule //traverse through each file entry and do similar to above to add to earContext. } rather then be able to use getResources() on the deployableModule regardless of wether its an archive or something else. Hope that helps. So if this is acceptable, I can proceed. On Aug 23, 2006, at 3:39 PM, Jacek Laskowski wrote:
-sachin |
- Re: GERONIMO-1526 Sachin Patel
- Re: GERONIMO-1526 Dain Sundstrom
- Re: GERONIMO-1526 Jason Dillon
- Re: GERONIMO-1526 Sachin Patel
- Re: GERONIMO-1526 Jason Dillon
