Skip to content

Instantly share code, notes, and snippets.

@lincolnthree
Created March 14, 2013 18:15
Show Gist options
  • Select an option

  • Save lincolnthree/5163772 to your computer and use it in GitHub Desktop.

Select an option

Save lincolnthree/5163772 to your computer and use it in GitHub Desktop.
AddonRegistry registry = runnable.getForge().getAddonRegistry();
Future<Addon> future = registry.start(addonToDeploy);
try
{
Addon addon = future.get();
if (addon.getStatus().isFailed() || addon.getStatus().isMissing())
{
ContainerException e = new ContainerException("Addon " + addonToDeploy + " failed to deploy.");
deployment.deployedWithError(e);
throw e;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment