I've implemented the Class-Path processing.
Now the <pathelements/>
will include the dependencies of the jars they include.

e.g. kernel compiles over common-project, concurrent
and includes test-project for testcase support.


  |       <source id="main">
  |          <include input="common-project"/>
  |          <include input="concurrent"/>
  |       </source>
  | 
  |       <source id="tests" test="org/jboss/test/**/*TestCase.java">
  |          <include input="main"/>
  |          <include input="test-project"/>
  |       </source>
  | 

This leads to all these jars and their depdencies getting included in the 
classpath
for running the tests:


  | [EMAIL PROTECTED] kernel]$ ant -f jbossbuild.xml show -Dshow=runtest
  | Buildfile: jbossbuild.xml
  | 
  | show:
  | <!-- Run tests -->
  | <target name="runtest" depends="runtest.tests">
  | </target>
  | 
  | <!-- Run tests for the source src/tests -->
  | <target name="runtest.tests">
  | <mkdir dir="/home/ejort/jboss-head/workspace/kernel/output/reports/tests"/>
  | <delete 
file="/home/ejort/jboss-head/workspace/kernel/output/reports/tests/test.log"/>
  | <junit printsummary="true" fork="true">
  |   <sysproperty key="org.jboss.test.logfile" 
value="/home/ejort/jboss-head/workspace/kernel/output/reports/tests/test.log"/>
  |   <formatter type="plain"/>
  |   <classpath>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/gnu-regexp/lib/gnu-regexp.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/common/output/lib/namespace.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/dom4j-dom4j/lib/dom4j.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/apache-xerces/lib/xercesImpl.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/apache-commons/lib/commons-httpclient.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/apache-log4j/lib/log4j.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/wutka-dtdparser/lib/dtdparser121.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/test/output/lib/jboss-test.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/kernel/output/classes/main"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/oswego-concurrent/lib/concurrent.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/kernel/output/classes/tests"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/apache-jaxme/lib/jaxmexs.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/common/output/lib/jboss-common.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/apache-slide/client/lib/webdavlib.jar"/>
  |     <pathelement 
location="/home/ejort/jboss-head/workspace/thirdparty/junit-junit/lib/junit.jar"/>
  |   </classpath>
  |   <batchtest 
todir="/home/ejort/jboss-head/workspace/kernel/output/reports/tests">
  |     <fileset dir="/home/ejort/jboss-head/workspace/kernel/src/tests" 
includes="org/jboss/test/**/*TestCase.java"/>
  |   </batchtest>
  | </junit>
  | </target>
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863471#3863471

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863471


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to