The component build defines how to build the artifacts referenced in the main build:
There is a componentdef and an artifactdef referencing the ids defined in the main build file. There are also definitions so you can differentiate the different source types. e.g. I can imagine source types of main (like we have now), interfaces, implementation, client (classes used on the client), test (the test classes not for distribution), etc. | <?xml version="1.0"?> | | <!-- | JBoss, the OpenSource J2EE webOS | | Distributable under LGPL license. | See terms of license at gnu.org. | --> | <project name="project" | default="build" | basedir="." | > | <!-- The main build --> | <import file="../JBossAS/build.xml"/> | | <includes id="classes"> | <include input="main"/> | </includes> | | <!-- The component definition --> | <componentdef component="test2" description="Project test2"> | | <source id="main"> | <include input="test1.jar"/> | <include input="jboss-common.jar"/> | </source> | | <artifactdef artifact="test2.jar"> | <include input="classes"/> | </artifactdef> | | <source id="test" test="**/*TestCase.java"> | <include input="classes"/> | <include input="test.path"/> | </source> | | <artifactdef artifact="test2.api"> | <include input="main"/> | <include input="test"/> | </artifactdef> | </componentdef> | | </project> | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860510#3860510 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860510 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development