JarArchiveFactory jaf = new JarArchiveFactory();
FileArchiveFactory faf = new FileArchiveFactory();
FileArchive farc = (FileArchive)faf.openArchive(new File(new File(new File(sourceDir, appDir), earDirName), moduleDirName).getAbsolutePath());
String suffix = ".jar"; //default to .jar
//File temp;
Enumeration e = farc.entries();
//figure out what type of module this is by the existance of the standard dd's
while(e.hasMoreElements()) {
String entry = (String)e.nextElement();
if (entry.equalsIgnoreCase("WEB-INF/web.xml")) {
suffix = ".war";