|
From: <rya...@jb...> - 2005-05-17 03:06:35
|
A small problem with this approach is that you will need to uniquely name the thirdparty include id, like this:
<includes id="thirdparty-naming">
| <include component="common"/>
| <include component="apache-log4j"/>
| </includes>
Anything with an id attribute is a reference. Since we will be parsing other component-info's, you want the id to be unique so that references are not overriden by other "thirdparty" includes.
Also, there is a small syntax problem in your last code example. To reference an includes from an include, you use the input attribute:
<componentdef component="naming" description="JBoss Naming">
| <source id="main"
| rmic="**/NamingServer.class"
| >
| <include input="thirdparty"/>
| <include component="junit-junit"/>
| </source>
Nitpicks aside, I think the design will work.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877865#3877865
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877865
|