if (moduleFile == null) throw new NullPointerException("moduleFile is null");
if (targetPath == null) throw new NullPointerException("targetPath is null");
if (targetPath.endsWith("/")) throw new IllegalArgumentException("targetPath must not end with a '/'");
// Load the module file
DeploymentLoader loader = new DeploymentLoader();
AppModule appModule = null;
try {
appModule = loader.load(new File(moduleFile.getName()));
} catch (UnsupportedModuleTypeException e){
return null;
} catch (OpenEJBException e) {
throw new DeploymentException(e);
}