progress.setCommandContext(commandContext);
RemoteDeployUtil.uploadFilesToServer(args, progress);
}
Set<AbstractName> set = kernel.listGBeans(new AbstractNameQuery(PluginInstaller.class.getName()));
for (AbstractName name : set) {
PluginInstaller installer = (PluginInstaller) kernel.getProxyManager().createProxy(name, PluginInstaller.class);
// make sure to pass args[0] as RemoteDeployUtil.uploadFilesToServer will update
// the args argument with the filenames returned from the server
Artifact artifact = installer.installLibrary(args[0], groupId);
kernel.getProxyManager().destroyProxy(installer);
return artifact;
}
return null;
}