axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-axis/java build.xml
Date Tue, 23 Oct 2001 17:18:01 GMT
dug         01/10/23 10:18:01

  Modified:    java     build.xml
  Log:
  Only build the files in the test dir if we're actually going to
  run the tests - this enables us to build "dist" w/o having
  junit available.
  
  Revision  Changes    Path
  1.66      +11 -2     xml-axis/java/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/build.xml,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- build.xml	2001/10/19 18:18:00	1.65
  +++ build.xml	2001/10/23 17:18:01	1.66
  @@ -214,7 +214,6 @@
           <path refid="classpath"/>
         </classpath>
         <include name="samples/**/*.java" />
  -      <include name="test/**/*.java" />
         <exclude name="samples/**/*SMTP*.java" unless="smtp.present" />
         <exclude name="**/old/**/*.java" />
         <exclude name="samples/userguide/example2/Calculator.java"/>
  @@ -299,7 +298,17 @@
     <!-- =================================================================== -->
     <!-- Runs the JUnit package testcases -->
     <!-- =================================================================== -->
  -  <target name="junit" if="junit.present" depends="buildTest">
  +  <target name="junit" if="junit.present" depends="samples,buildTest">
  +    <!-- Start by building the testcases -->
  +    <javac srcdir="." destdir="${build.dest}"
  +           debug="${debug}">
  +      <classpath>
  +        <pathelement location="${build.lib}/${name}.jar"/>
  +        <path refid="classpath"/>
  +      </classpath>
  +      <include name="test/**/*.java" />
  +    </javac>
  +
       <mkdir dir="${basedir}/test-reports" />
       <junit printsummary="yes" haltonfailure="yes" fork="yes">
         <classpath refid="test-classpath" />
  
  
  

Mime
View raw message