Project

Profile

Help

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

he / tags / 9.8.0.2 / build / build-constants.xml @ 02f8308b

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

    
3
<project basedir="." default="all" name="Saxon: The XSLT and XQuery Processor: build constants"
4
    xmlns:dn="antlib:org.apache.ant.dotnet">
5

    
6
    <!--TODO: 1: ensure saxon9api.netmodule is included in the build
7
           2: remove the archive target before shipping this file-->
8

    
9
    <!-- note : Ant 1.7 is needed for this script -->
10

    
11
    <!-- Ant 1.7 introduces a <service> element to allow META-INF/services
12
         directories to be created in JAR files. Unfortunately it is broken,
13
         see http://issues.apache.org/bugzilla/show_bug.cgi?id=41201. The relevant
14
         code here is retained in the form of comments, and can be reinstated
15
         when the bug is fixed. Meanwhile the directories are created manually -->
16

    
17
    <!-- Build file for Saxon. This builds all six for the released products:
18
         Saxon-HE, -PE, and -EE, on both the Java and .NET platforms. It also builds
19
         the released resources file. A full build requires access to Saxonica
20
         proprietary source code. The open source Saxon-HE product can be built for
21
         Java using target "hej"; but building Saxon-HE for .NET may require some
22
         disentangling of tasks that depend on Saxon-EE code being present. -->
23

    
24

    
25
    <!-- Naming conventions:
26
         -n   : .NET
27
         -j   : Java
28
         -he  : Home Edition
29
         -pe  : Professional Edition
30
         -ee  : Enterprise Edition
31
         combined as appropriate, so -pej denotes Saxon-PE on the Java platform
32
    -->
33

    
34
    <import file="build-locations.xml"/>
35
    <!-- defines $repo-os and $repo-priv and other local machine directories -->
36

    
37
    <property name="version" value="9.8.0.1"/>
38
    <property name="versionh" value="9-8-0-1"/>
39
    <property name="major.version" value="9.8"/>
40
    <property name="major.versionh" value="9-8"/>
41
    <property name="release.date" value="2017-06-08"/>
42
    <property name="version.maven" value="9.8.0-1"/>
43

    
44
    <!-- REMEMBER ALSO TO SET THE VERSION IN Version.java -->
45

    
46
    <makeurl file="${basedir}" property="baseurl"/>
47

    
48
    <!-- following locations are specific to the machine -->
49

    
50
    <!-- Java source (used for building both the Java and .NET products) -->
51

    
52
    <property name="repository" value=".."/>
53
    <property name="repository.uri" value="${basedir}/.."/>
54

    
55
    <property name="development-j.dir" value="${repository}/src"/>
56
    <property name="development-data.dir" value="${development-j.dir}/he/java/net/sf/saxon/data"/>
57
    <property name="stats-data.dir" value="${development-j.dir}/ee/data"/>
58
    <property name="source-hej.dir" value="${repo-os}/he/java"/>
59
    <property name="source-eej.dir" value="${repo-priv}/ee/java"/>
60

    
61
    <!-- a suitable saxon license file -->
62
    <property name="saxon.license" value="${license.dir}/saxon-license.lic"
63
        description="A Saxon license capable of running EE"/>
64

    
65
    <!-- directory holding XML user documentation -->
66
    <property name="userdoc.dir" value="${repository}/userdoc"/>
67

    
68
    <!-- Location of userdoc source -->
69
    <property name="userdoc.uri" value="${repository.uri}/userdoc"
70
              description="Userdoc directory in development repository"/>
71

    
72
    <!-- Location of viewer_app output directory -  development userdoc directory -->
73
    <property name="viewer_app.dir" value="${repository.uri}/userdoc/saxon9/viewer_app"
74
              description="Viewer app built in userdoc directory in development repository"/>
75

    
76

    
77
    <!-- Full URI for viewer_app output directory (supplied to stylesheets as parameter) -->
78
    <property name="viewer_app.full-uri" value="${viewer_app.dir}"
79
              description="Full URI for viewer app in userdoc directory in development repository"/>
80

    
81
    <!-- directories holding use cases and sample applications -->
82
    <property name="usecases.dir" value="${repository}/use-cases"/>
83
    <property name="samples.dir" value="${repository}/samples"/>
84
    <property name="samples.uri" value="${repository.uri}/samples"/>
85
    
86
    <!-- Location of Feature Keys Tools directory -->
87
    <property name="featureKeys.dir" value="${repository}/tools/featureKeys"
88
        description="Feature Keys directory in development repository"/>
89

    
90

    
91
    <!-- following locations are relative to the build file -->
92

    
93
    <!-- directory in which to build the product for release -->
94
    <property name="output.dir" value="output"/>
95

    
96
    <condition property="product.dir" value="${output.dir}/saxon-build/${version}">
97
        <or>
98
            <os family="unix"/>
99
            <os family="mac"/>
100
        </or>
101
    </condition>
102
    <condition property="product.dir" value="${output.dir}/saxon-build/${version}">
103
        <os family="windows"/>
104
    </condition>
105
    
106
    <!-- Character used as file separator in classpaths -->
107
    <condition property="Z" value=";">
108
        <os family="windows"/>
109
    </condition>
110
    
111
    <condition property="Z" value=":">
112
        <or>
113
            <os family="unix"/>
114
            <os family="mac"/>
115
        </or>
116
    </condition>
117
    
118

    
119
    <!-- directory in which to build the issued .ZIP files -->
120
    <property name="issue.dir"
121
        value="${output.dir}/saxon-issues/saxon-issue-${release.date} (${version})"/>
122

    
123
    <!-- location of the archive directory -->
124
    <property name="archive.dir" value="../archive${versionh}"/>
125

    
126

    
127
    <property name="lib.dir" value="../lib"/>
128
    <property name="temp.dir" value="temp"/>
129

    
130
    <!-- following locations are relative to the destination directory -->
131

    
132
    <property name="build-resources.dir" value="${product.dir}/resources"/>
133

    
134
    <property name="build.debug" value="true"/>
135
    <property name="build.debuglevel" value="source,lines,vars"/>
136
    <property name="build.deprecation" value="true"/>
137
    <property name="build.optimize" value="true"/>
138
    <property name="build.compiler" value="javac1.5"/>
139
    <property name="build.compiler.source" value="1.5"/>
140
    <property name="build.compiler.target" value="1.5"/>
141
    <property name="build.compress" value="true"/>
142

    
143
    
144
    <!-- version of the ASM library to use -->
145
    <property name="asm.version" value="5.0.3"/>
146

    
147
</project>
(1-1/5)