Project

Profile

Help

Download (4.99 KB) Statistics
| Branch: | Tag: | Revision:

he / latest9.4 / build / test-j.xml @ 871f8c22

1 871f8c22 O'Neil Delpratt
<?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="c:/saxon-licenses"/>
11
    
12
    <target name="test-cmd-hej">
13
      <exec dir="${build-hej.dir}" 
14
            executable="java"
15
            failonerror="true">
16
         <arg line="-cp ${build-hej.dir}/saxon9he.jar"/>
17
         <arg line="net.sf.saxon.Transform"/>  
18
         <arg line="-t"/>
19
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
20
         <arg line="-xsl:${build-resources.dir}/samples/styles/books.xsl"/>
21
      </exec>
22
      <exec dir="${build-hej.dir}" 
23
            executable="java"
24
            failonerror="true">
25
         <arg line="-cp ${build-hej.dir}/saxon9he.jar"/>
26
         <arg line="net.sf.saxon.Query"/>   
27
         <arg line="-t"/>
28
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
29
         <arg line="-q:${build-resources.dir}/samples/query/books.xq"/>
30
      </exec>
31
    </target>   
32
    
33
    <target name="test-cmd-pej">
34
      <exec dir="${build-pej.dir}" 
35
            executable="java"
36
            failonerror="true">
37
         <arg line="-cp ${build-pej.dir}/saxon9pe.jar;c:\saxon-licenses"/>
38
         <arg line="net.sf.saxon.Transform"/>   
39
         <arg line="-t"/>
40
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
41
         <arg line="-xsl:${build-resources.dir}/samples/styles/books.xsl"/>
42
      </exec>
43
      <exec dir="${build-pej.dir}" 
44
            executable="java"
45
            failonerror="true">
46
         <arg line="-cp ${build-pej.dir}/saxon9pe.jar;c:\saxon-licenses"/>
47
         <arg line="net.sf.saxon.Query"/>   
48
         <arg line="-t"/>
49
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
50
         <arg line="-qs:saxon:line-number((//*)[last()])"/>
51
         <arg line="-l:on"/>
52
      </exec>
53
    </target>
54
    
55
    <target name="test-cmd-eej">
56
      <exec dir="${build-eej.dir}" 
57
            executable="java"
58
            failonerror="true">
59
         <arg line="-cp ${build-eej.dir}/saxon9ee.jar;c:\saxon-licenses"/>
60
         <arg line="com.saxonica.Transform"/>   
61
         <arg line="-t"/>
62
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
63
         <arg line="-xsl:${build-resources.dir}/samples/styles/books.xsl"/>
64
      </exec>
65
      <exec dir="${build-eej.dir}" 
66
           executable="java"
67
            failonerror="true">
68
         <arg line="-cp ${build-eej.dir}/saxon9ee.jar;c:\saxon-licenses"/>
69
         <arg line="com.saxonica.Query"/>  
70
         <arg line="-t"/>
71
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
72
         <arg line="-qs:saxon:line-number((//*)[last()])"/>
73
         <arg line="-l:on"/>
74
      </exec>
75
      <exec dir="${build-eej.dir}" 
76
            executable="java"
77
            failonerror="true">
78
         <arg line="-cp ${build-eej.dir}/saxon9ee.jar;c:\saxon-licenses"/>
79
         <arg line="com.saxonica.Validate"/>  
80
         <arg line="-t"/>
81
         <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
82
         <arg line="-xsd:${build-resources.dir}/samples/data/books.xsd"/>
83
      </exec>
84
    </target>
85
    
86
    <target name="test-api-hej">
87
       <exec dir="${build-resources.dir}/samples" 
88
            executable="java"
89
            failonerror="true">
90
         <arg line="-cp ${build-resources.dir}/samples/java/classes;${build-hej.dir}/saxon9he.jar;${basedir}/${lib.dir}/jdom-1.0.jar;${basedir}/${lib.dir}/xom-1.2.6.jar;${basedir}/${lib.dir}/dom4j-1.6.1.jar;c:\saxon-licenses"/>
91
         <arg line="S9APIExamples"/>  
92
         <arg line="QueryA"/>
93
      </exec>
94
    </target>    
95
    
96
    <target name="test-api-pej">
97
       <exec dir="${build-resources.dir}/samples" 
98
            executable="java"
99
            failonerror="true">
100
         <arg line="-cp ${build-resources.dir}/samples/java/classes;${build-pej.dir}/saxon9pe.jar;${basedir}/${lib.dir}/jdom-1.0.jar;${basedir}/${lib.dir}/xom-1.2.6.jar;${basedir}/${lib.dir}/dom4j-1.6.1.jar;c:\saxon-licenses"/>
101
         <arg line="S9APIExamples"/>  
102
         <arg line="nonschema"/>
103
      </exec>
104
    </target>
105
    
106
    <target name="test-api-eej">
107
       <exec dir="${build-resources.dir}/samples" 
108
            executable="java"
109
            failonerror="true">
110
         <arg line="-cp ${build-resources.dir}/samples/java/classes;${build-eej.dir}/saxon9ee.jar;${basedir}/${lib.dir}/jdom-1.0.jar;${basedir}/${lib.dir}/xom-1.2.6.jar;${basedir}/${lib.dir}/dom4j-1.6.1.jar;c:\saxon-licenses"/>
111
         <arg line="S9APIExamples"/>  
112
         <arg line="all"/>
113
      </exec>
114
    </target>
115
    
116
    <target name="test-cmd-j" depends="test-cmd-hej, test-cmd-pej, test-cmd-eej"/>
117
    
118
    <target name="test-api-j" depends="test-api-hej, test-api-pej, test-api-eej"/>
119
    
120
    <target name="test-j" depends="test-cmd-j, test-api-j"/>               
121
         
122
         
123
         
124
</project>