earName=earName+".ear";
try {
JarArchiveFactory jaf = new JarArchiveFactory();
OutputJarArchive targetJar = (OutputJarArchive)jaf.createArchive(new File(targetDir, earName).getAbsolutePath());
FileArchiveFactory faf = new FileArchiveFactory();
FileArchive farc = (FileArchive)faf.openArchive((new File(srcDir, earDirName)).getAbsolutePath());
Enumeration e = farc.entries();
String lastModuleProcessed = "";
while(e.hasMoreElements()) {
String s = (String)e.nextElement();
String moduleDir;