commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: jakarta-commons-sandbox/graph build-test.xml
Date Sun, 02 Dec 2001 18:06:59 GMT
jvanzyl     01/12/02 10:06:59

  Added:       graph    build-test.xml
  Log:
  - testing build for the graph package
  
  Revision  Changes    Path
  1.1                  jakarta-commons-sandbox/graph/build-test.xml
  
  Index: build-test.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Stratum" default="test" basedir=".">
  
    <!-- Allow any user specific values to override the defaults -->
    <property file="${user.home}/build.properties" />
    <!-- Allow user defaults for this project -->
    <property file="build.properties" />
    <!-- Set default values for the build -->
    <property file="default.properties" />
  
    <!-- Construct compile classpath -->
    <path id="classpath">
      <pathelement location="${junit.jar}"/>
      <pathelement location="${build.home}/class"/>
    </path>
  
    <!-- ================================================================== -->
    <!-- T E S T                                                            -->
    <!-- ================================================================== -->
  
    <target 
      name="test" 
      depends="compile-test" 
      description="runs (junit) unit tests">
      
      <echo>
        Running all JUnit tests
      </echo>
      
      <junit printSummary="yes">
        <formatter type="plain"/>
        <classpath refid="classpath"/>
        <batchtest todir=".">
          <fileset dir="${build.home}/class">
            <include name="**/*Test*.class"/>
          </fileset>
        </batchtest>
      </junit>
    </target>
  
    <!-- ================================================================== -->
    <!-- C O M P I L E  T E S T S                                           -->
    <!-- ================================================================== -->
  
    <target
      name="compile-test"
      description="==> compiles the test source code">
      
      <ant antfile="build.xml" target="clean"/>
      <ant antfile="build.xml" target="compile"/>
      
      <javac srcdir="${test.home}"
        destdir="${build.home}/class"
        excludes="**/package.html"
        debug="${debug}"
        deprecation="${deprecation}"
        optimize="${optimize}">
        <classpath refid="classpath"/>
        <classpath>
          <pathelement path="${build.home}/class"/>
        </classpath>
      </javac>
    </target>
  
  </project>
  
  
  

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


Mime
View raw message