-
Notifications
You must be signed in to change notification settings - Fork 0
/
wxmetar.xml
263 lines (213 loc) · 9.91 KB
/
wxmetar.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2011.
~
~ You are free:
~ to Share — to copy, distribute and transmit the work
~ to Remix — to adapt the work
~
~
~ Under the following conditions:
~ Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
~
~ Noncommercial — You may not use this work for commercial purposes.
~
~ Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
~
~ For more information, visit http://creativecommons.org/licenses/by-nc-sa/3.0/
-->
<project name="wxmetar" default="all">
<property file="wxmetar.properties"/>
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="128m"/>
<patternset id="ignored.files">
<exclude name="**/CVS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/RCS/**"/>
<exclude name="**/rcs/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/.pyc/**"/>
<exclude name="**/.pyo/**"/>
<exclude name="**/*.pyc/**"/>
<exclude name="**/*.pyo/**"/>
<exclude name="**/.git/**"/>
<exclude name="**/*.hprof/**"/>
<exclude name="**/_svn/**"/>
<exclude name="**/.hg/**"/>
<exclude name="**/*.lib/**"/>
<exclude name="**/*~/**"/>
</patternset>
<patternset id="library.patterns">
<include name="*.war"/>
<include name="*.ear"/>
<include name="*.zip"/>
<include name="*.swc"/>
<include name="*.egg"/>
<include name="*.jar"/>
</patternset>
<patternset id="compiler.resources">
<include name="**/?*.properties"/>
<include name="**/?*.xml"/>
<include name="**/?*.gif"/>
<include name="**/?*.png"/>
<include name="**/?*.jpeg"/>
<include name="**/?*.jpg"/>
<include name="**/?*.html"/>
<include name="**/?*.dtd"/>
<include name="**/?*.tld"/>
<include name="**/?*.ftl"/>
</patternset>
<!-- JDK definitions -->
<property name="jdk.bin.1.6" value="${jdk.home.1.6}/bin"/>
<path id="jdk.classpath.1.6">
<fileset dir="${jdk.home.1.6}">
<include name="../../../../Support/Deploy.bundle/Contents/Resources/Java/deploy.jar"/>
<include name="lib/dt.jar"/>
<include name="lib/javaws.jar"/>
<include name="lib/jce.jar"/>
<include name="lib/jconsole.jar"/>
<include name="lib/management-agent.jar"/>
<include name="lib/plugin.jar"/>
<include name="lib/sa-jdi.jar"/>
<include name="../Classes/alt-rt.jar"/>
<include name="../Classes/charsets.jar"/>
<include name="../Classes/classes.jar"/>
<include name="../Classes/jsse.jar"/>
<include name="../Classes/ui.jar"/>
<include name="lib/ext/apple_provider.jar"/>
<include name="lib/ext/dnsns.jar"/>
<include name="lib/ext/localedata.jar"/>
<include name="lib/ext/sunjce_provider.jar"/>
<include name="lib/ext/sunpkcs11.jar"/>
</fileset>
</path>
<property name="project.jdk.home" value="${jdk.home.1.6}"/>
<property name="project.jdk.bin" value="${jdk.bin.1.6}"/>
<property name="project.jdk.classpath" value="jdk.classpath.1.6"/>
<!-- Project Libraries -->
<path id="library.libraries.classpath">
<fileset dir="${basedir}/libs">
<patternset refid="library.patterns"/>
</fileset>
</path>
<!-- Global Libraries -->
<!-- Application Server Libraries -->
<!-- Modules -->
<!-- Module WXMetar -->
<dirname property="module.wxmetar.basedir" file="${ant.file}"/>
<property name="module.jdk.home.wxmetar" value="${project.jdk.home}"/>
<property name="module.jdk.bin.wxmetar" value="${project.jdk.bin}"/>
<property name="module.jdk.classpath.wxmetar" value="${project.jdk.classpath}"/>
<property name="compiler.args.wxmetar" value="${compiler.args}"/>
<property name="wxmetar.output.dir" value="${module.wxmetar.basedir}/out/production/WXMetar"/>
<property name="wxmetar.testoutput.dir" value="${module.wxmetar.basedir}/out/test/WXMetar"/>
<path id="wxmetar.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="wxmetar.module.production.classpath">
<path refid="${module.jdk.classpath.wxmetar}"/>
<path refid="library.libraries.classpath"/>
</path>
<path id="wxmetar.runtime.production.module.classpath">
<pathelement location="${wxmetar.output.dir}"/>
<path refid="library.libraries.classpath"/>
</path>
<path id="wxmetar.module.classpath">
<path refid="${module.jdk.classpath.wxmetar}"/>
<pathelement location="${wxmetar.output.dir}"/>
<path refid="library.libraries.classpath"/>
</path>
<path id="wxmetar.runtime.module.classpath">
<pathelement location="${wxmetar.testoutput.dir}"/>
<pathelement location="${wxmetar.output.dir}"/>
<path refid="library.libraries.classpath"/>
</path>
<patternset id="excluded.from.module.wxmetar">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.wxmetar">
<patternset refid="excluded.from.module.wxmetar"/>
</patternset>
<path id="wxmetar.module.sourcepath">
<dirset dir="${module.wxmetar.basedir}">
<include name="src"/>
</dirset>
</path>
<path id="wxmetar.module.test.sourcepath">
<dirset dir="${module.wxmetar.basedir}">
<include name="test"/>
</dirset>
</path>
<target name="compile.module.wxmetar" depends="compile.module.wxmetar.production,compile.module.wxmetar.tests"
description="Compile module WXMetar"/>
<target name="compile.module.wxmetar.production" description="Compile module WXMetar; production classes">
<mkdir dir="${wxmetar.output.dir}"/>
<javac destdir="${wxmetar.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}"
memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.wxmetar}/javac">
<compilerarg line="${compiler.args.wxmetar}"/>
<bootclasspath refid="wxmetar.module.bootclasspath"/>
<classpath refid="wxmetar.module.production.classpath"/>
<src refid="wxmetar.module.sourcepath"/>
<patternset refid="excluded.from.compilation.wxmetar"/>
</javac>
<jar destfile="${wxmetar.output.dir}/wxmetar.jar" basedir="${wxmetar.output.dir}"/>
<copy todir="${wxmetar.output.dir}">
<fileset dir="${module.wxmetar.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.wxmetar.tests" depends="compile.module.wxmetar.production"
description="compile module WXMetar; test classes" unless="skip.tests">
<mkdir dir="${wxmetar.testoutput.dir}"/>
<javac destdir="${wxmetar.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}"
memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.wxmetar}/javac">
<compilerarg line="${compiler.args.wxmetar}"/>
<bootclasspath refid="wxmetar.module.bootclasspath"/>
<classpath refid="wxmetar.module.classpath"/>
<src refid="wxmetar.module.test.sourcepath"/>
<patternset refid="excluded.from.compilation.wxmetar"/>
</javac>
<copy todir="${wxmetar.testoutput.dir}">
<fileset dir="${module.wxmetar.basedir}/test">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="clean.module.wxmetar" description="cleanup module">
<delete dir="${wxmetar.output.dir}"/>
<delete dir="${wxmetar.testoutput.dir}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.wxmetar, clean.artifact.wxmetar:ear_exploded" description="cleanup all"/>
<target name="build.modules" depends="init, clean, compile.module.wxmetar" description="build all modules"/>
<target name="init.artifacts">
<property name="artifacts.temp.dir" value="${basedir}/__artifacts_temp"/>
<property name="artifact.output.wxmetar:ear_exploded" value="${basedir}/out/artifacts/WXMetar_ear_exploded"/>
<mkdir dir="${artifacts.temp.dir}"/>
</target>
<target name="clean.artifact.wxmetar:ear_exploded" description="clean WXMetar:ear exploded artifact output">
<delete dir="${artifact.output.wxmetar:ear_exploded}"/>
</target>
<target name="artifact.wxmetar:ear_exploded" depends="init.artifacts"
description="Build 'WXMetar:ear exploded' artifact">
<mkdir dir="${artifact.output.wxmetar:ear_exploded}"/>
</target>
<target name="build.all.artifacts" depends="artifact.wxmetar:ear_exploded" description="Build all artifacts">
<!-- Delete temporary files -->
<delete dir="${artifacts.temp.dir}"/>
</target>
<target name="all" depends="build.modules, build.all.artifacts" description="build all"/>
</project>