[jboss-dev-forums] [Design of JBoss Deployment Framework] - Re: Russian doll packaging in arbitrary directories - JBAS-5
alesj
do-not-reply at jboss.com
Fri Sep 19 04:55:11 EDT 2008
How do we diff between this example:
- test-in-lib.sar/lib
- test-in-lib.sar/lib/somejar.jar/META-INF
For war it's not a problem,
it's jar structure that recursively checks all children as possible contexts.
Hence it's picking up META-INF, which we now recognize as dir structure.
This is my current DirectoryStructure code:
| public boolean determineStructure(StructureContext context) throws DeploymentException
| {
| if (disabled)
| return false;
|
| try
| {
| // jar structure should already handle top level dirs
| if (context.isTopLevel() == false)
| {
| VirtualFile file = context.getFile();
| // only simple directories, non-leaves with META-INF are handled by jar structure
| if (isLeaf(file) == false)
| {
| addAllChildren(context);
| return true;
| }
| }
| return false;
| }
| catch (Exception e)
| {
| throw DeploymentException.rethrowAsDeploymentException("Error determining structure.", e);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177594#4177594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177594
More information about the jboss-dev-forums
mailing list