User: user57  
  Date: 01/08/01 20:45:32

  Modified:    etc      Tag: jboss_buildmagic build-bank.xml
  Log:
   o testsuite can now run junit tasks again.
   o classpath usage has been expaned to allow standard ant v1.3 clients to
     work against the build files.
   o optional tasks is not assumed to be in the path anymore
   o reverting to the standard xml parser that comes with ant to avoid any
     odd class loading problems that might occur.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +25 -13    jbosstest/etc/Attic/build-bank.xml
  
  Index: build-bank.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/etc/Attic/build-bank.xml,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- build-bank.xml    2001/08/01 06:32:08     1.1.2.3
  +++ build-bank.xml    2001/08/02 03:45:32     1.1.2.4
  @@ -9,7 +9,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build-bank.xml,v 1.1.2.3 2001/08/01 06:32:08 user57 Exp $ -->
  +<!-- $Id: build-bank.xml,v 1.1.2.4 2001/08/02 03:45:32 user57 Exp $ -->
   
   <!-- The JBossTest bank testsuite build file -->
   
  @@ -47,7 +47,7 @@
       <mkdir dir="${build.resources}"/>
       <copy todir="${build.resources}" filtering="yes">
         <fileset dir="${source.resources}">
  -         <include name="**/*"/>
  +        <include name="org/jboss/test/bank/**"/>
         </fileset>
       </copy>
     </target>
  @@ -58,6 +58,8 @@
     <!-- ================================================================== -->
   
     <target name="jars" depends="compile">
  +    <mkdir dir="${build.jars}"/>
  +
       <!-- build banktest.jar -->
       <jar jarfile="${build.jars}/banktest.jar"
         manifest="${build.etc}/manifest.mf">
  @@ -90,29 +92,39 @@
     <!-- Run tests                                                          -->
     <!-- ================================================================== -->
   
  -  <target name="tests">
  -    <junit dir="${build.classes}" 
  +  <target name="tests" depends="jars">
  +    <mkdir dir="${build.reports}"/>
  +    <junit dir="${module.output}"
           printsummary="${junit.printsummary}" 
  +        haltonerror="${junit.haltonerror}" 
           haltonfailure="${junit.haltonfailure}" 
           fork="${junit.fork}"
  -        timeout="${junit.timeout}">
  +        timeout="${junit.timeout}"
  +        jvm="${junit.jvm}">
   
  -      <jvmarg value="${junit.java.options}"/>
  -      <jvmarg value="-Djbosstest.deploy.dir=${build.jars}"/>
  +      <!-- junit.jvm.options must have a valid value -->
  +      <jvmarg value="${junit.jvm.options}"/>
  +      <sysproperty key="jbosstest.deploy.dir" file="${build.jars}"/>
   
         <classpath>
  +        <pathelement location="${build.classes}"/>
           <path refid="javac.classpath"/>
  -        <pathelement path="${build.classes}"/>
  +        <path refid="apache.ant.classpath"/>
  +        <path refid="apache.ant.ext.classpath"/>
         </classpath>
   
         <formatter type="${junit.formatter.type}"
                 usefile="${junit.formatter.usefile}"/>
   
  -      <batchtest todir="${test.results.dir}">
  -        <fileset dir="${build.classes}/org/jboss/test/bank">
  -          <include name="**/Test*.class"/>
  -          <include name="**/AllJUnitTests.class"/>
  -          <include name="**/Main.class"/>
  +      <batchtest todir="${build.reports}"
  +              haltonerror="${junit.batchtest.haltonerror}" 
  +              haltonfailure="${junit.batchtest.haltonfailure}" 
  +              fork="${junit.batchtest.fork}">
  +
  +        <fileset dir="${build.classes}">
  +          <include name="org/jboss/test/bank/**/Test*.class"/>
  +          <include name="org/jboss/test/bank/**/AllJUnitTests.class"/>
  +          <include name="org/jboss/test/bank/**/Main.class"/>
           </fileset>
         </batchtest>
       </junit>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to