You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by da...@apache.org on 2002/10/14 17:36:32 UTC

cvs commit: jakarta-james/tests build.xml

danny       2002/10/14 08:36:32

  Added:       tests    build.xml
  Log:
  build.xml in /tests/ dir will build and run tests
  First have to build James so that dependancies can be satisfied from build/classes
  Also have to start James ..
  
  Revision  Changes    Path
  1.1                  jakarta-james/tests/build.xml
  
  Index: build.xml
  ===================================================================
  <project default="main" basedir=".">
      <!--
      Give user a chance to override without editing this file
      (and without typing -D each time he compiles it)
    -->
      <property file=".ant.properties"/>
      <property file="${user.home}/.ant.properties"/>
      <property name="name" value="james"/>
      <property name="Name" value="James"/>
      <property name="version" value="2.1a1-cvs"/>
      <property name="year" value="1999-2002"/>
      <!-- There should be no need to override default compiler but need to change
      javac task to run without this -->
      <property name="build.compiler" value="modern"/>
      <!--
      these are here only for those who use jikes compiler. For other
      developers this part makes no difference.
    -->
      <property name="build.compiler.emacs" value="on"/>
      <property name="build.compiler.pedantic" value="true"/>
      <property name="build.compiler.depend" value="true"/>
      <property name="build.compiler.fulldepend" value="true"/>
      <property name="debug" value="on"/>
      <property name="optimize" value="on"/>
      <property name="deprecation" value="on"/>
  
     <!--
         ===================================================================
         Set the properties for intermediate directory
         ===================================================================
    -->
      <property name="build.dir" value="build/tests"/>
      <property name="build.classes" value="${build.dir}/classes"/>
      <property name="james.classes" value="../build/classes"/>
      <!--
         ===================================================================
         Set the properties for source directories and parameters
         ===================================================================
    -->
      <property name="src.dir" value="src"/>
      <property name="java.dir" value="${src.dir}/java"/>
      <property name="conf.dir" value="${src.dir}/conf"/>
      
      <property name="lib.dir" value="../lib"/>
      <property name="phoenix" value="../phoenix-bin"/>
      <property name="phoenix.lib.dir" value="${phoenix}/lib"/>    
  
      <path id="project.class.path">
          <pathelement path="${java.class.path}"/>
          <fileset dir="${lib.dir}">
              <include name="*.jar"/>
              <exclude name="xerces.jar"/>
          </fileset>
          <fileset dir="${phoenix.lib.dir}">
              <include name="*.jar"/>
          </fileset>
          <pathelement path="${build.classes}"/>
          <pathelement path="${james.classes}"/>
      </path>
      
  <target name="main" depends="test"/>
  
      <target name="compile" >
      <echo message="compiling James"/>
          <available property="jndi.present" classname="javax.naming.InitialContext"/>
          <mkdir dir="${build.classes}"/>
          <javac destdir="${build.classes}" debug="${debug}" optimize="${optimize}" deprecation="${deprecation}">
              <classpath refid="project.class.path"/>
              <src path="${src.dir}"/>
          </javac>
          <copy todir="${build.classes}">
              <fileset dir="${java.dir}">
                  <include name="**/*.properties"/>
              </fileset>
          </copy>
      </target>    
  
    <!-- ==================================================================== -->
    <!-- Run the unit test suite                                            -->
    <!-- =================================================================== -->  
  	<target name="test" depends="compile">
  		<junit printsummary="yes" showoutput="false">
  			<formatter type="plain" usefile="no"/>
  			<classpath refid="project.class.path"/>
  			<test name="org.apache.james.testing.EndToEnd" haltonerror="true"/> 
  		</junit>
  	</target>
  
  </project>
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>