jvanzyl     00/11/09 23:16:19

  Modified:    build    build-velocity.xml
  Log:
  - added test-introspector target to build file.
  
  Revision  Changes    Path
  1.13      +32 -10    jakarta-velocity/build/build-velocity.xml
  
  Index: build-velocity.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/build/build-velocity.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- build-velocity.xml        2000/11/03 02:54:00     1.12
  +++ build-velocity.xml        2000/11/10 07:16:19     1.13
  @@ -51,16 +51,19 @@
   
           <!-- JUnit Testbed -->
           <property name="velocity.test.runner" value="junit.textui.TestRunner"/>
  -        <!-- 
  -        <property name="velocity.test.runner"
  -            value="junit.swinggui.TestRunner"/>
  -        -->
  -        <property name="velocity.test"
  -            value="org.apache.velocity.test.VelocityTest"/>
  -        
  +
  +        <property name="template.test"
  +            value="org.apache.velocity.test.TemplateTestCase"/>
  +
  +        <property name="introspector.test"
  +            value="org.apache.velocity.test.IntrospectorTestCase"/>
  +
           <property name="default.properties" 
               value="org/apache/velocity/runtime/defaults/velocity.properties"/>
  -        
  +
  +        <property name="default.texen.properties"
  +            value="org/apache/velocity/texen/defaults/texen.properties"/>
  +
           <taskdef name="fop" classname="Fop"/>
           <taskdef name="xslt" classname="Xslt"/>
           
  @@ -99,6 +102,10 @@
               
               <copy file="${src.java.dir}/${default.properties}"
                   tofile="${build.dest}/${default.properties}"/>
  +
  +            <copy file="${src.java.dir}/${default.texen.properties}"
  +                tofile="${build.dest}/${default.texen.properties}"/>
  +
       </target>
     
       <!-- =================================================================== -->
  @@ -219,11 +226,26 @@
       <!-- JUnit Tests for Velocity                                            -->
       <!-- =================================================================== -->
       <target name="test" depends="init">
  +
  +        <echo message="Running JUnit template tests for Velocity ..."/>
  +
  +        <java classname="${velocity.test.runner}">
  +            <arg value="${template.test}"/>
  +            <classpath>
  +                <pathelement path="${classpath}"/>
  +                <pathelement location="${junit.jar}"/>
  +                <pathelement location="${build.dest}"/>
  +            </classpath>
  +        </java>
  +
  +    </target>
  +
  +    <target name="test-introspector" depends="init">
   
  -        <echo message="Running JUnit tests for Velocity ..."/>
  +        <echo message="Running JUnit Introspector tests for Velocity ..."/>
   
           <java classname="${velocity.test.runner}">
  -            <arg value="${velocity.test}"/>
  +            <arg value="${introspector.test}"/>
               <classpath>
                   <pathelement path="${classpath}"/>
                   <pathelement location="${junit.jar}"/>
  
  
  

Reply via email to