curcuru     01/05/03 07:35:08

  Modified:    test/java build.xml
  Log:
  Add temporary support for compiling xsltc-specific tests (to be improved, but 
it works)
  
  Revision  Changes    Path
  1.23      +55 -3     xml-xalan/test/java/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/java/build.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- build.xml 2001/03/29 01:04:13     1.22
  +++ build.xml 2001/05/03 14:35:02     1.23
  @@ -84,6 +84,19 @@
           <pathelement path="${prepend.class.path}" />
           <pathelement path="${java.class.path}" />
       </path>
  +
  +    <!-- Temporary hack to compile XSLTC tests until we find a better way -->
  +    <path id="xsltc.class.path">
  +        <pathelement path="${xalan.build.dir}/xsltc.jar" />
  +        <pathelement path="${xalan.bin.dir}/BCEL.jar" />
  +        <pathelement path="${xalan.bin.dir}/JLex.jar" />
  +        <pathelement path="${xalan.bin.dir}/java_cup.jar" />
  +        <pathelement path="${xalan.bin.dir}/runtime.jar" />
  +        <pathelement path="${xalan.bin.dir}/xml.jar" />
  +        <pathelement path="${xalan.bin.dir}/crimson.jar" />
  +        <pathelement path="${java.class.path}" />
  +    </path>
  +
       <!-- Used when compiling Xalan-J 1.x tests explicitly against
            Xalan-J 2.x with it's compat.jar 
       -->
  @@ -264,7 +277,7 @@
       </target>
   
       <!-- =================================================================== 
-->
  -    <!-- For Xalan-J 2.x testing, use these targets                          
-->
  +    <!-- For Xalan-J 2.x or JAXP/TRAX testing, use these targets             
-->
       <!-- =================================================================== 
-->
       <!-- Just compile any xslwrappers related to trax: note naming 
            convention of Trax*Wrapper -->
  @@ -310,8 +323,16 @@
            focusing most Xalan-J 2.x testing just on the TRAX or 
            javax.xml.transform interface.  Later on, we should also 
            separately test the other Xalan-J 2.x API's! -->
  -    <target name="compile.xalan2" depends="compile.trax"></target>
  -    <target name="package.xalan2" depends="package.trax"
  +    <!-- Compile various TRAX related API tests -->
  +    <target name="compile.xalan2" depends="compile.trax">
  +        <echo message="Do justXalan-J 2.x specific tests" />
  +        <javac srcdir="${src.dir}" 
  +               destdir="${build.dir}" 
  +               includes="${test.root}xalanj2/*.java"
  +               debug="${debug}"
  +               classpathref="compiletest.class.path" />
  +    </target>
  +    <target name="package.xalan2" depends="compile.xalan2,package.trax"
               description="Build testxsl.jar for testing Xalan-J 2.x" 
></target>
   
       <!-- Call this target to compile and run the minitest against 
  @@ -651,5 +672,36 @@
                  </doclet>             
           </javadoc>
       </target>
  +
  +
  +
  +    <!-- =================================================================== 
-->
  +    <!-- For temporary XSLTC testing, use these targets                      
    -->
  +    <!-- =================================================================== 
-->
  +    <!-- Just compile any xslwrappers related to XSLTC: note naming 
  +         convention of Xsltc*Wrapper -->
  +    <target name="compile.xsltc.xslwrappers" depends="compile.xsl">
  +        <javac srcdir="${src.dir}" 
  +               destdir="${build.dir}" 
  +               
includes="${test.root}xslwrapper/Xsltc*Wrapper.java,${test.root}xslwrapper/TraxWrapperUtils.java"
  +               debug="${debug}"
  +               classpathref="xsltc.class.path" />
  +    </target>
  +
  +    <!-- Compile various XSLTC related API tests -->
  +    <target name="compile.xsltc" 
depends="compile.xsl,compile.xsltc.xslwrappers">
  +        <javac srcdir="${src.dir}" 
  +               destdir="${build.dir}" 
  +               includes="${test.root}xsltc/*.java"
  +               debug="${debug}"
  +               classpathref="xsltc.class.path" />
  +    </target>
  +    <target name="package.xsltc" depends="compile.xsltc"
  +            description="Build testxsl.jar for testing XSLTC-only classes" >
  +        <jar jarfile="${build.dir}/${testxsl.jar.name}" 
  +             basedir="${build.dir}" 
  +             includes="**/*.class,**/*.properties" />
  +    </target>
  +
   
   </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to