throw new BuildException("null archivePath - archivePath should be an archive");
}
if (archivePath.endsWith(".zip") || archivePath.endsWith(".jar")){
try {
FrameworkInstallationService is = getInstallationService();
is.install(archivePath);
}
catch (IOException e) {
log.error("Caught an exception getting the installation service",e);
throw new BuildException(e);
}