ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/proposal/sandbox/junit build.xml
Date Sat, 02 Feb 2002 01:37:35 GMT
sbailliez    02/02/01 17:37:35

  Modified:    proposal/sandbox/junit build.xml
  Log:
  Allow to execute rjunit to check for real use case by running Ant tests
  
  Revision  Changes    Path
  1.3       +21 -0     jakarta-ant/proposal/sandbox/junit/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/junit/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	14 Jan 2002 00:28:28 -0000	1.2
  +++ build.xml	2 Feb 2002 01:37:35 -0000	1.3
  @@ -17,6 +17,8 @@
     <property name="build.lib" value="${build.dir}/lib"/>
     <property name="build.src" value="${build.dir}/src"/>
     <property name="build.classes" value="${build.dir}/classes"/>
  +  
  +  <property name="testcases.classes" value="${build.dir}/testcases"/>
   
     <property name="java.dir" value="src/java"/>
     <property name="tests.dir" value="src/testcases"/>
  @@ -44,6 +46,7 @@
              includeantruntime="no">
         <classpath refid="project.class.path"/>
       </javac>
  +    <antcall target="compile-tests"/>
     </target>
     
   
  @@ -55,4 +58,22 @@
       </delete>
     </target>
   
  +  <target name="compile-tests">
  +    <mkdir dir="${testcases.classes}"/>
  +    <javac srcdir="src/testcases"
  +           destdir="${testcases.classes}"
  +           debug="${debug}"
  +           optimize="${optimize}"
  +           deprecation="${deprecation}"
  +           includeantruntime="no">
  +      <classpath refid="project.class.path"/>
  +    </javac>
  +  </target>
  +  
  +  <target name="run-ant-tests" depends="compile">
  +     <!--ant dir="${ant.base.dir}" target="build" inheritall="false"/>
  +     <ant dir="${ant.base.dir}" target="compile-tests" inheritall="false"/-->
  +     <ant antfile="rjunit-ant-tests.xml"/>
  +  </target>
  +  
   </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message