allTypes = new ArrayList(7);
APP = new DeployableObjectType("Application",
"META-INF/application.xml",
"META-INF/sun-application.xml",
".ear", ModuleType.EAR);
WEB = new DeployableObjectType("Web Module",
"WEB-INF/web.xml",
"WEB-INF/sun-web.xml",
".war", ModuleType.WAR);
CONN = new DeployableObjectType("Connector Module",
"META-INF/ra.xml",
"META-INF/sun-ra.xml",
".rar", ModuleType.RAR);
CAR = new DeployableObjectType("AppClient Module",
"META-INF/application-client.xml",
"META-INF/sun-application-client.xml",
".jar", ModuleType.CAR);
EJB = new DeployableObjectType("EJB Module",
"META-INF/ejb-jar.xml",
"META-INF/sun-ejb-jar.xml",
".jar", ModuleType.EJB);
LCM = new DeployableObjectType("Lifecycle Module",
null,
null,
".jar", XModuleType.LCM);
CMB = new DeployableObjectType("Custom MBean Module",
null,
null,
".jar", XModuleType.CMB);
String[] files = new String[] { "pkgingEApp.ear", "foof.rar", "hello.war", "foo.jar", "nothere", "junk.ear",
"ear", "ejb", "rar", "war"};
for(int i = 0; i < files.length; i++)
{
File f = new File("C:/ias8samples/" + files[i]);
try
{
// used to display (f.getName() + " is a: " + valueOf(f));
}
catch (Exception ex)
{
ex.printStackTrace();
}
}