-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.xml
175 lines (150 loc) · 5.8 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?xml version="1.0"?>
<!--
Copyright 2009 Red Hat, Inc.
All rights reserved.
-->
<project name="penrose" default="build">
<description>Penrose</description>
<property name="branding.path" value="."/>
<property file="${branding.path}/build.properties"/>
<property name="prefix" value=""/>
<property name="iscc.path" value="ISCC.exe"/>
<property name="cygwin.home" value="c:/cygwin"/>
<tstamp>
<format property="TIMESTAMP" pattern="yyyyMMddHHmmss"/>
</tstamp>
<target name="init">
<echo message="Operating System: ${os.name} ${os.version} (${os.arch})" />
<echo message="Java Version: ${java.version}" />
<condition property="isWindows">
<os family="windows"/>
</condition>
<condition property="isUnix">
<and>
<os family="unix"/>
<not>
<os family="mac"/>
</not>
</and>
</condition>
<condition property="isMac">
<os family="mac"/>
</condition>
</target>
<path id="branding.path">
<fileset dir="${branding.path}">
<include name="**/*"/>
</fileset>
</path>
<target name="javacc" depends="init">
<ant dir="common" target="javacc"/>
<ant dir="core" target="javacc"/>
</target>
<target name="import" depends="init">
<ant dir="server" target="import"/>
</target>
<target name="compile" depends="init">
<ant dir="common" target="compile"/>
<ant dir="core" target="compile"/>
<ant dir="client" target="compile"/>
<ant dir="server" target="compile"/>
</target>
<target name="build" depends="init">
<ant dir="common" target="build"/>
<ant dir="core" target="build"/>
<ant dir="client" target="build"/>
<ant dir="server" target="build"/>
</target>
<target name="docs" depends="init">
<ant dir="common" target="docs"/>
<ant dir="core" target="docs"/>
<ant dir="client" target="docs"/>
<ant dir="server" target="docs"/>
</target>
<target name="export" depends="build">
<mkdir dir="target"/>
<tar destfile="target/${project.name}-bin.tar.gz" compression="gzip">
<tarfileset dir="server/bin"/>
</tar>
<tar destfile="target/${project.name}-conf.tar.gz" compression="gzip">
<tarfileset dir="conf"/>
<tarfileset dir="server/conf"/>
</tar>
<tar destfile="target/${project.name}-samples.tar.gz" compression="gzip">
<tarfileset dir="samples"/>
</tar>
<tar destfile="target/${project.name}-schema.tar.gz" compression="gzip">
<tarfileset dir="schema"/>
</tar>
<tar destfile="target/${project.name}-services.tar.gz" compression="gzip">
<tarfileset dir="services">
<exclude name="**/build.xml"/>
<exclude name="**/src/"/>
<exclude name="**/target/"/>
</tarfileset>
</tar>
</target>
<target name="export-all" depends="docs,export">
<tar destfile="target/${project.name}-docs.tar.gz" compression="gzip">
<tarfileset dir="core/target" includes="javadoc/**"/>
<tarfileset dir="server/target" prefix="server" includes="javadoc/**"/>
<tarfileset dir="docs"/>
</tar>
</target>
<target name="dist" depends="init">
<ant dir="common" target="dist"/>
<ant dir="core" target="dist"/>
<ant dir="client" target="dist"/>
<ant dir="server" target="dist"/>
</target>
<target name="dist-src" depends="init">
<ant dir="common" target="dist-src"/>
<ant dir="core" target="dist-src"/>
<ant dir="client" target="dist-src"/>
<ant dir="server" target="dist-src"/>
</target>
<target name="dist-macosx" depends="init">
<ant dir="common" target="dist-macosx"/>
<ant dir="core" target="dist-macosx"/>
<ant dir="client" target="dist-macosx"/>
<ant dir="server" target="dist-macosx"/>
</target>
<target name="dist-unix" depends="init">
<ant dir="common" target="dist-unix"/>
<ant dir="core" target="dist-unix"/>
<ant dir="client" target="dist-unix"/>
<ant dir="server" target="dist-unix"/>
</target>
<target name="dist-win32" depends="init">
<ant dir="common" target="dist-win32"/>
<ant dir="core" target="dist-win32"/>
<ant dir="client" target="dist-win32"/>
<ant dir="server" target="dist-win32"/>
</target>
<target name="dist-rpm" depends="dist">
<ant dir="client" target="dist-rpm"/>
<ant dir="server" target="dist-rpm"/>
</target>
<target name="dist-all" depends="init">
<ant dir="common" target="dist-all"/>
<ant dir="core" target="dist-all"/>
<ant dir="client" target="dist-all"/>
<ant dir="server" target="dist-all"/>
</target>
<target name="install" depends="init">
<ant dir="client" target="install"/>
<ant dir="server" target="install"/>
</target>
<target name="uninstall" depends="init">
<ant dir="client" target="uninstall"/>
<ant dir="server" target="uninstall"/>
</target>
<target name="clean" depends="init">
<delete dir="dist" failonerror="false"/>
<delete dir="target" failonerror="false"/>
<ant dir="server" target="clean"/>
<ant dir="client" target="clean"/>
<ant dir="core" target="clean"/>
<ant dir="common" target="clean"/>
</target>
</project>