-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
111 lines (93 loc) · 3.72 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8"?>
<project name="AreaTree" basedir="." default="release">
<description>Antenna House AH Formatter AreaTree XML.</description>
<!--
Copyright 2016-2023 Antenna House, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<dirname property="AreaTree.basedir" file="${ant.file.AreaTree}"/>
<pathconvert property="AreaTree.basedir.converted" dirsep="/">
<path location="${AreaTree.basedir}" />
<!-- Ant under cygwin uses a lowercase drive letter, which some Java
programs don't recognise as a drive letter, so translate. -->
<map from="c:" to="/C:"/>
<map from="d:" to="/D:"/>
<map from="e:" to="/E:"/>
</pathconvert>
<pathconvert property="basedir.converted" dirsep="/">
<path location="${basedir}" />
<!-- Ant under cygwin uses a lowercase drive letter, which some Java
programs don't recognise as a drive letter, so translate. -->
<map from="c:" to="/C:"/>
<map from="d:" to="/D:"/>
<map from="e:" to="/E:"/>
</pathconvert>
<!-- Local file of properties determining or describing local
configuration. -->
<property name="build.local.properties"
location="${basedir.converted}/build.local.properties"/>
<property file="${build.local.properties}"/>
<!-- XML file of properties determining or describing local
configuration. -->
<property name="build.properties.xml"
location="${fochek.basedir.converted}/properties.xml"/>
<property file="${build.properties.xml}"/>
<!-- File of properties determining or describing local
configuration. -->
<property name="build.properties"
location="${AreaTree.basedir.converted}/build.properties"/>
<property file="${build.properties}"/>
<tstamp>
<format property="timestamp" pattern="yyyy-MM-dd"/>
</tstamp>
<!-- Targets -->
<target name="en.zip"
description="Make a Zip archive of just the English documentation.">
<mkdir dir="${AreaTree.basedir.converted}/releases" />
<zip destfile="${AreaTree.basedir.converted}/releases/${ant.project.name}-en-${version}.zip"
basedir="${AreaTree.basedir.converted}"
excludes="**"
update="true">
<zipfileset dir="gh-pages/en"
includes="**"
prefix="${ant.project.name}" />
<zipfileset dir="schema"
includes="**"
prefix="${ant.project.name}/schema" />
<zipfileset dir="."
includes="AreaTree.framework, README.md"
prefix="${ant.project.name}" />
</zip>
</target>
<target name="ja.zip"
description="Make a Zip archive of just the Japanese documentation.">
<mkdir dir="${AreaTree.basedir.converted}/releases" />
<zip destfile="${AreaTree.basedir.converted}/releases/${ant.project.name}-ja-${version}.zip"
basedir="${AreaTree.basedir.converted}"
excludes="**"
update="true">
<zipfileset dir="gh-pages/ja"
includes="**"
prefix="${ant.project.name}" />
<zipfileset dir="schema"
includes="**"
prefix="${ant.project.name}/schema" />
<zipfileset dir="."
includes="AreaTree.framework, README.md"
prefix="${ant.project.name}" />
</zip>
</target>
<target name="release" depends="en.zip, ja.zip" />
<!-- Utility targets. -->
<target name="echoproperties">
<echoproperties />
</target>
</project>