I just checked in an update to the deployer that adds a DeclaredStructure deployer which
is driven off a META-INF/jboss-structure.xml descriptor. From the
org.jboss.test.deployers.structure.explicit.test.DeclaredStructureUnitTestCase, there is a
complex.deployer deployment similar to the tomcat war deployer:
| complex.deployer/
| complex.deployer/cp-mf.jar/
| complex.deployer/cp-mf.jar/info
| complex.deployer/x.war/
| complex.deployer/x.war/WEB-INF/
| complex.deployer/x.war/WEB-INF/classes/
| complex.deployer/x.war/WEB-INF/lib/
| complex.deployer/x.war/WEB-INF/lib/w0.jar/
| complex.deployer/sub.jar/
| complex.deployer/sub.jar/empty
| complex.deployer/sub.jar/META-INF/
| complex.deployer/sub.jar/META-INF/MANIFEST.MF
| complex.deployer/lib-dir/
| complex.deployer/lib-dir/jar2.jar/
| complex.deployer/lib-dir/jar2.jar/META-INF/
| complex.deployer/lib-dir/jar2.jar/META-INF/MANIFEST.MF
| complex.deployer/lib-dir/jar0.jar/
| complex.deployer/jar1.jar/
| complex.deployer/META-INF/
| complex.deployer/META-INF/jboss-structure.xml
|
whose complex.deployer/META-INF/jboss-structure.xml is:
| <structure>
| <context>
| <path name="complex.deployer" />
| <metaDataPath name="META-INF" />
| <classpath>
| <path name="jar1.jar" />
| <path name="lib-dir" suffixes=".jar" />
| </classpath>
| </context>
| <context>
| <path name="complex.deployer/sub.jar" />
| <metaDataPath name="META-INF" />
| </context>
| <context>
| <path name="complex.deployer/x.war" />
| <metaDataPath name="WEB-INF" />
| <classpath>
| <path name="WEB-INF/classes" />
| <path name="WEB-INF/lib" suffixes=".jar" />
| </classpath>
| </context>
| </structure>
|
Any declared context with a META-INF/MANIFEST.MF declaring a Class-Path is also used to
augment the context classpath, as is the Class-Path of any entry added via the descriptor
classpath.
I'll intgrate this into the jboss5 trunk tomorrow when I check in the tomcat.deployer
work.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978087#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...