Skip to content

Commit

Permalink
allow access to META-INF between deployment modules
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Mar 15, 2011
1 parent 4f0de99 commit 99e327e
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -30,6 +30,7 @@
import org.jboss.as.server.deployment.PrivateSubDeploymentMarker;
import org.jboss.modules.ModuleIdentifier;
import org.jboss.modules.ModuleLoader;
import org.jboss.modules.filter.PathFilters;

/**
* Processor that set up module dependencies between sub deployments
Expand All @@ -53,7 +54,9 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro
final ModuleIdentifier parentModule = parent.getAttachment(Attachments.MODULE_IDENTIFIER);
if (parentModule != null) {
// access to ear classes
moduleSpec.addDependency(new ModuleDependency(moduleLoader, parentModule, false, false, true));
ModuleDependency moduleDependency = new ModuleDependency(moduleLoader, parentModule, false, false, true);
moduleDependency.addImportFilter(PathFilters.acceptAll(),true);
moduleSpec.addDependency(moduleDependency);
}

for(DeploymentUnit subDeployment : subDeployments){
Expand All @@ -64,6 +67,7 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro
continue;
}
ModuleDependency moduleDependency = new ModuleDependency(moduleLoader, subDeployment.getAttachment(Attachments.MODULE_IDENTIFIER), false, false, true);
moduleDependency.addImportFilter(PathFilters.acceptAll(),true);
moduleSpec.addDependency(moduleDependency);
}
}
Expand Down

0 comments on commit 99e327e

Please sign in to comment.