import org.jboss.vfs.VirtualFile;
import org.osgi.framework.BundleException;
public class OSGiBundleInfoParseProcessor implements DeploymentUnitProcessor {
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
<BUG>final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
BundleInfo info = BundleInfoAttachment.getBundleInfo(deploymentUnit);
if (info != null)
return;</BUG>
VirtualFile virtualFile = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();

import org.jboss.vfs.VirtualFile;
import org.osgi.framework.BundleException;
public class OSGiBundleInfoParseProcessor implements DeploymentUnitProcessor {
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final String contextName = deploymentUnit.getName();
final ServiceRegistry serviceRegistry = phaseContext.getServiceRegistry();
BundleInfo info = BundleInfoAttachment.getBundleInfo(deploymentUnit);
ServiceController<Deployment> deploymentController = DeploymentHolderService.getDeployment(serviceRegistry, contextName);
if (info != null || deploymentController != null)
return;
VirtualFile virtualFile = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();
