Example #1
0
 /**
  * Undeploys a contribution from a given bundle.
  *
  * <p>The path will be relative to the bundle root. Example: <code>
  * undeployContrib("org.nuxeo.ecm.core", "OSGI-INF/CoreExtensions.xml")
  * </code>
  *
  * @param name the bundle
  * @param contrib the contribution
  */
 @Override
 public void undeployContrib(String name, String contrib) throws Exception {
   RuntimeContext context = runtime.getContext(name);
   if (context == null) {
     context = runtime.getContext();
   }
   context.undeploy(contrib);
 }
 @Override
 public boolean uninstallContribution(Contribution contrib) {
   boolean ret = isInstalled(contrib);
   try {
     ctx.undeploy(contrib);
   } catch (IOException e) {
     throw new RuntimeServiceException(e);
   }
   return ret;
 }