Project

Profile

Help

How to connect?
Download (4.92 KB) Statistics
| Branch: | Tag: | Revision:

he / tags / 9.6.0.8 / build / test-j.xml @ 02f8308b

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<project basedir="." default="all" name="Regression Test Saxon for the Java platform"
4
         xmlns:dn="antlib:org.apache.ant.dotnet">
5
         
6
    <import file="build-constants.xml"/>
7
    <import file="build-j.xml"/>
8
    
9
    <!-- Directory containing a Saxon license file -->
10
    <!--<property name="license.dir" value="../saxon-licenses"/>-->
11
    
12
    <target name="test-cmd-hej" depends="j, samples-j">
13
      <exec executable="java"
14
            failonerror="true">
15
         <arg line="-cp ${build-hej.dir}/saxon9he.jar"/>
16
         <arg line="net.sf.saxon.Transform"/>  
17
         <arg line="-t"/>
18
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
19
         <arg line="-xsl:${build-resources.dir}/samples/styles/books.xsl"/>
20
      </exec>
21
      <exec executable="java"
22
            failonerror="true">
23
         <arg line="-cp ${build-hej.dir}/saxon9he.jar"/>
24
         <arg line="net.sf.saxon.Query"/>   
25
         <arg line="-t"/>
26
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
27
         <arg line="-q:${build-resources.dir}/samples/query/books.xq"/>
28
      </exec>
29
    </target>   
30
    
31
    <target name="test-cmd-pej" depends="j, samples-j">
32
      <exec executable="java"
33
            failonerror="true">
34
         <arg line="-cp ${build-pej.dir}/saxon9pe.jar;${license.dir}"/>
35
         <arg line="net.sf.saxon.Transform"/>   
36
         <arg line="-t"/>
37
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
38
         <arg line="-xsl:${build-resources.dir}/samples/styles/books.xsl"/>
39
      </exec>
40
      <exec executable="java"
41
            failonerror="true">
42
         <arg line="-cp ${build-pej.dir}/saxon9pe.jar;${license.dir}"/>
43
         <arg line="net.sf.saxon.Query"/>   
44
         <arg line="-t"/>
45
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
46
         <arg line="-qs:saxon:line-number((//*)[last()])"/>
47
         <arg line="-l:on"/>
48
      </exec>
49
    </target>
50
    
51
    <target name="test-cmd-eej" depends="j, samples-j">
52
      <exec executable="java"
53
            failonerror="true">
54
         <arg line="-cp ${build-eej.dir}/saxon9ee.jar;${license.dir}"/>
55
         <arg line="com.saxonica.Transform"/>   
56
         <arg line="-t"/>
57
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
58
         <arg line="-xsl:${build-resources.dir}/samples/styles/books.xsl"/>
59
      </exec>
60
      <exec executable="java"
61
            failonerror="true">
62
         <arg line="-cp ${build-eej.dir}/saxon9ee.jar;${license.dir}"/>
63
         <arg line="com.saxonica.Query"/>  
64
         <arg line="-t"/>
65
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
66
         <arg line="-qs:saxon:line-number((//*)[last()])"/>
67
         <arg line="-l:on"/>
68
      </exec>
69
      <exec executable="java"
70
            failonerror="true">
71
         <arg line="-cp ${build-eej.dir}/saxon9ee.jar;${license.dir}"/>
72
         <arg line="com.saxonica.Validate"/>  
73
         <arg line="-t"/>
74
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
75
         <arg line="-xsd:${build-resources.dir}/samples/data/books.xsd"/>
76
      </exec>
77
    </target>
78
    
79
    <target name="test-api-hej" depends="j, samples-j">
80
       <exec executable="java"
81
             dir="${build-resources.dir}/samples"
82
             failonerror="true">
83
         <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes;${basedir}/${build-hej.dir}/saxon9he.jar;${basedir}/${lib.dir}/jdom.jar;${basedir}/${lib.dir}/xom-1.2.1.jar;${basedir}/${lib.dir}/dom4j-1.6.1.jar;${license.dir}"/>
84
         <arg line="S9APIExamples"/>  
85
         <arg line="QueryA"/>
86
      </exec>
87
    </target>    
88
    
89
    <target name="test-api-pej" depends="j, samples-j">
90
       <exec executable="java"
91
             dir="${build-resources.dir}/samples"
92
             failonerror="true">
93
         <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes;${basedir}/${build-pej.dir}/saxon9pe.jar;${basedir}/${lib.dir}/jdom.jar;${basedir}/${lib.dir}/xom-1.2.1.jar;${basedir}/${lib.dir}/dom4j-1.6.1.jar;${license.dir}"/>
94
         <arg line="S9APIExamples"/>  
95
         <arg line="nonschema"/>
96
      </exec>
97
    </target>
98
    
99
    <target name="test-api-eej" depends="j, samples-j">
100
       <exec executable="java"
101
             dir="${build-resources.dir}/samples"
102
             failonerror="true">
103
         <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes;${basedir}/${build-eej.dir}/saxon9ee.jar;${basedir}/${lib.dir}/jdom.jar;${basedir}/${lib.dir}/xom-1.2.1.jar;${basedir}/${lib.dir}/dom4j-1.6.1.jar;${license.dir}"/>
104
         <arg line="S9APIExamples"/>  
105
         <arg line="all"/>
106
      </exec>
107
    </target>
108
    
109
    <target name="test-cmd-j" depends="test-cmd-hej, test-cmd-pej, test-cmd-eej"/>
110
    
111
    <target name="test-api-j" depends="test-api-hej, test-api-pej, test-api-eej"/>
112
    
113
    <target name="test-j" depends="test-cmd-j, test-api-j"/>               
114
         
115
         
116
         
117
</project>
(7-7/9)