forked from olap4j/olap4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
622 lines (564 loc) · 26.1 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
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
<!--
== Licensed to Julian Hyde under one or more contributor license
== agreements. See the NOTICE file distributed with this work for
== additional information regarding copyright ownership.
==
== Julian Hyde licenses this file to you 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.
-->
<project name="olap4j" basedir="." default="dist" xmlns:ivy="antlib:org.apache.ivy.ant">
<property file="${basedir}/test.properties"/>
<import file="subfloor.xml" />
<property name="jar-jdk14.file"
value="${dist.dir}/${ivy.artifact.id}-jdk14-${project.revision}.jar" />
<property name="classes-jdk14.dir"
value="${bin.dir}/classes-jdk14" />
<property name="dist.doc.file" value="${dist.dir}/doc.tar.gz" />
<!-- Files that used to be generated. We continue to remove them, just in
case someone is running on an old sandbox. -->
<property name="old.generated.java.files"
value="
src/org/olap4j/mdx/parser/impl/DefaultMdxParser.java,
src/org/olap4j/mdx/parser/impl/DefaultMdxParserSym.java" />
<property name="generated.java.files"
value="
src/org/olap4j/mdx/parser/impl/MdxParserImpl.java,
src/org/olap4j/mdx/parser/impl/MdxParserImplTokenManager.java,
src/org/olap4j/mdx/parser/impl/ParseException.java,
src/org/olap4j/mdx/parser/impl/SimpleCharStream.java,
src/org/olap4j/mdx/parser/impl/Token.java,
src/org/olap4j/mdx/parser/impl/TokenMgrError.java,
src/org/olap4j/driver/xmla/XmlaOlap4jDriverVersion.java" />
<target name="checkJdkVersion" unless="jdk17.present">
<fail message="The 'jar' target (and dependent targets 'dist', 'binzip')
must be run under JDK 1.7." />
</target>
<condition property="jdk15.present">
<contains string="${java.version}" substring="1.5." />
</condition>
<condition property="jdk16.present">
<contains string="${java.version}" substring="1.6." />
</condition>
<condition property="jdk17.present">
<contains string="${java.version}" substring="1.7." />
</condition>
<path id="project.bootclasspath.jdk15">
<pathelement location="${testlib.dir}/rt-jdk1.5.jar"/>
</path>
<path id="project.bootclasspath.jdk16">
<pathelement location="${testlib.dir}/rt-java6.jar"/>
</path>
<condition property="init.foodmart">
<not>
<isset property="org.olap4j.foodmartLoader.disabled"/>
</not>
</condition>
<target name="setup" depends="version-properties,compile,create-dot-classpath"
description="Setups the project for eclipse." />
<target name="hudson" depends="clean-all,clean-tests,version-properties,jar,source.jar,tck-jar,xmla-jar,test,jar-jdk14"
description="Sugar goal to build olap4j from hudson." />
<target name="hudson-notest" depends="clean-all,clean-tests,version-properties,jar,source.jar,tck-jar,xmla-jar,jar-jdk14"
description="Sugar goal to build olap4j from hudson." />
<target name="clean" depends="subfloor.clean, clean-generated, clean-foodmart"/>
<target name="clean-all" depends="subfloor.clean-all, clean-generated, clean-foodmart"/>
<target name="clean-generated">
<delete includeemptydirs="true" quiet="true">
<fileset dir="." includes="${generated.java.files},${old.generated.java.files},VERSION.txt"/>
</delete>
</target>
<!-- Override to create a proper release. -->
<target name="dist" depends="all"/>
<target name="all"
depends="clean,version-properties,jar,source.jar,tck-jar,xmla-jar,javadoc,javadoc-pdf,jar-jdk14,source.zip"
description="Creates a distribution">
<zip zipfile="${dist.dir}/${zip.filename}">
<zipfileset dir="${basedir}" prefix="${ivy.artifact.id}-${project.revision}"
includes="
LICENSE,
NOTICE,
README.txt,
HISTORY.md,
VERSION.txt" />
<zipfileset dir="${basedir}/doc" prefix="${ivy.artifact.id}-${project.revision}/doc"
includes="**/*" />
<zipfileset dir="${javadoc.dir}" prefix="${ivy.artifact.id}-${project.revision}/doc/api"
includes="**/*" />
<zipfileset dir="${dist.dir}" prefix="${ivy.artifact.id}-${project.revision}/lib" includes="olap4j-*.jar" />
<zipfileset dir="${lib.dir}"
prefix="${ivy.artifact.id}-${project.revision}/lib"
includes="xercesImpl.jar"/>
<zipfileset dir="${dist.dir}" prefix="${ivy.artifact.id}-${project.revision}" includes="${source.zip.filename}" />
</zip>
</target>
<target name="doczip" depends="clean-all,clean-tests,compile,compile-tests,version-properties,javadoc,javadoc-pdf,javadoc-with-ydoc"
description="Creates an archive of all docs to deploy on www.olap4j.org.
See also doc/deployDoc.sh.">
<mkdir dir="${dist.dir}" />
<tar destfile="${dist.doc.file}" compression="gzip">
<tarfileset dir="${basedir}/doc" prefix="doc" includes="
**/*.html,
**/*.pdf,
**/*.png,
**/*.css,
**/*.xml,
olap4j_api.pdf"
excludes="
**/*~,
**/_vti*/*,
**/*.sh"/>
<tarfileset dir="${javadoc.dir}" prefix="doc/api"
includes="**/*" />
</tar>
</target>
<target name="compile"
depends="init, compile.pre, compileJdk15, compileJdk16, compileJdk17, compile.src_copy, compile.res_copy, compile.lic_copy, compile.post"
description="Performs all the steps to prepare the bin directory with a complete compilation" />
<target name="jar" depends="checkJdkVersion, compile, compile-tests, set-build.id, generate.manifest"
description="Jars up the bin directory after a compile">
<zip destfile="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar">
<zipfileset dir="${basedir}" prefix=""
includes="
LICENSE,
NOTICE,
README.txt,
VERSION.txt" />
<zipfileset dir="${classes.dir}" prefix=""
includes="**/*"
excludes="
org/olap4j/driver/**,
META-INF/**"/>
</zip>
</target>
<target name="xmla-jar" depends="jar"
description="Jars up the bin directory after a compile">
<zip destfile="${dist.dir}/${ivy.artifact.id}-xmla-${project.revision}.jar">
<zipfileset dir="${basedir}" prefix=""
includes="
LICENSE,
NOTICE,
README.txt,
VERSION.txt" />
<zipfileset dir="${classes.dir}" prefix=""
includes="
org/olap4j/driver/**,
META-INF/**"/>
</zip>
</target>
<target name="tck-jar" depends="jar"
description="Jars up the Test Compatibility Kit (TCK) after a compile">
<zip destfile="${dist.dir}/${ivy.artifact.id}-tck-${project.revision}.jar">
<zipfileset dir="${basedir}" prefix=""
includes="
LICENSE,
NOTICE,
README.txt,
VERSION.txt" />
<zipfileset dir="${testclasses.dir}" prefix="" includes="**/*"
excludes="jndi.properties" />
</zip>
</target>
<target name="compileJdk15">
<javac
destdir="${classes.dir}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
fork="true"
bootclasspathref="project.bootclasspath.jdk15"
source="1.5"
target="1.5"
includeantruntime="false">
<classpath>
<path refid="classpath" />
</classpath>
<src path="${src.dir}" />
<exclude name="org/olap4j/driver/xmla/FactoryJdbc4Impl.java"/>
<exclude name="org/olap4j/driver/xmla/FactoryJdbc4Plus.java"/>
<exclude name="org/olap4j/driver/xmla/FactoryJdbc41Impl.java"/>
</javac>
</target>
<target name="compileJdk16">
<javac
destdir="${classes.dir}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
fork="true"
bootclasspathref="project.bootclasspath.jdk16"
source="1.6"
target="1.6"
includeantruntime="false">
<classpath>
<path refid="classpath" />
</classpath>
<src path="${src.dir}" />
<include name="org/olap4j/driver/xmla/FactoryJdbc4Impl.java"/>
<include name="org/olap4j/driver/xmla/FactoryJdbc4Plus.java"/>
</javac>
</target>
<target name="compileJdk17">
<javac
destdir="${classes.dir}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
fork="true"
source="1.7"
target="1.7"
includeantruntime="false">
<classpath>
<path refid="classpath" />
</classpath>
<src path="${src.dir}" />
<include name="org/olap4j/driver/xmla/FactoryJdbc41Impl.java"/>
</javac>
</target>
<target name="source.zip">
<zip zipfile="${dist.dir}/${source.zip.filename}">
<zipfileset dir="${basedir}" prefix="${ivy.artifact.id}-${project.revision}"
includes="
LICENSE,
NOTICE,
README.txt,
HISTORY.md,
VERSION.txt" />
<zipfileset dir="${basedir}" prefix="${ivy.artifact.id}-${project.revision}"
includes="
src/**,
testsrc/**,
foodmart/*.zip,
foodmart/*.xml,
simple-jndi/**,
xmla-cache/**,
.settings/**
.classpath,
.project,
build.properties,
build.xml,
checkFile.sh,
checkFile.awk,
ivy.xml,
ivy-xmla.xml,
ivy-tck.xml,
ivy-jdk14.xml,
ivysettings.xml,
subfloor.xml,
test.properties" />
</zip>
</target>
<target name="version-properties">
<exec executable="git" outputproperty="git.commit">
<arg line="log -n 1 --format=format:%H"/>
</exec>
<tstamp>
<format property="build.time" timezone="UTC" pattern="yyyy/MM/dd HH:mm:ss z"/>
</tstamp>
<!--echo message="olap4j ${project.revision}${line.separator}" file="VERSION.txt" /-->
<echo file="VERSION.txt">Title: ${ant.project.name}
Version: ${project.revision}
VersionMajor: ${project.revision.major}
VersionMinor: ${project.revision.minor}
Git-Latest-Commit: ${git.commit}
Ant-Version: ${ant.version}
Created-By: ${java.version} (${java.vendor})
Built-On: ${build.time}
Built-By: ${user.name}
Built-In: ${user.dir}</echo>
<echo file="${src.dir}/org/olap4j/driver/xmla/XmlaOlap4jDriverVersion.java">/*
* Project version information. Generated - do not modify.
*/
package org.olap4j.driver.xmla;
/**
* Version information for the XMLA driver. (Generated.)
*/
class XmlaOlap4jDriverVersion {
static final String NAME = "olap4j driver for XML/A";
static final String VERSION = "${project.revision}";
static final int MAJOR_VERSION = Integer.valueOf("${project.revision.major}");
static final int MINOR_VERSION = Integer.valueOf("${project.revision.minor}");
}
// End XmlaOlap4jDriverVersion.java</echo>
</target>
<target name="define-tasks"/>
<target name="parser" depends="resolve,define-tasks">
<javacc
target="${src.dir}/org/olap4j/mdx/parser/impl/MdxParser.jj"
javacchome="${lib.dir}"/>
</target>
<target name="clean-foodmart">
<delete includeemptydirs="false">
<fileset
dir="${basedir}/foodmart"
defaultexcludes="true">
<exclude name="FoodMart.xml"/>
<exclude name=".svn"/>
</fileset>
</delete>
</target>
<target name="init-foodmart" if="init.foodmart" description="Initializes the FoodMart database. Make sure to read and modify test.properties first.">
<pathconvert
property="test.classpath.formatted"
pathsep="${line.separator} "
refid="test.classpath" />
<fail message="Missing Foodmart loader driver in test classpath: ${line.separator}${test.classpath.formatted}">
<condition>
<not>
<available classname="${org.olap4j.foodmartLoader.driver}"
classpathref="test.classpath"/>
</not>
</condition>
</fail>
<java classname="mondrian.test.loader.MondrianFoodMartLoader" maxmemory="1024m" fork="true">
<classpath refid="test.classpath"/>
<arg value="-verbose"/>
<arg value="-tables"/>
<arg value="-indexes"/>
<arg value="-data"/>
<arg value="-aggregates"/>
<arg value="-outputJdbcBatchSize=100"/>
<arg value="-dataset=FOODMART"/>
<arg value="-inputFile=jar:file:testlib/mondrian-data-foodmart.jar!/data.sql"/>
<arg value="-afterFile=jar:file:testlib/mondrian-data-foodmart.jar!/after.sql"/>
<arg value="-jdbcDrivers=${org.olap4j.foodmartLoader.driver}"/>
<arg value="-outputJdbcURL=${org.olap4j.foodmartLoader.url}"/>
<arg value="-outputJdbcUser=${org.olap4j.foodmartLoader.user}"/>
<arg value="-outputJdbcPassword=${org.olap4j.foodmartLoader.password}"/>
</java>
</target>
<!-- Override of subfloor to resolve modules artifacts -->
<target name="resolve" depends="install-ivy,install-antcontrib">
<antcall target="subfloor.resolve"/>
<ivy:resolve file="ivy.xml" conf="codegen" />
<ivy:retrieve conf="codegen" pattern="${testlib.dir}/[module](-[classifier]).[ext]" />
<ivy:resolve file="ivy-jdk14.xml" conf="default" />
<ivy:deliver conf="default" deliverpattern="${bin.dir}/ivy-jdk14.xml" />
<ivy:retrieve conf="default" pattern="${lib.dir}/[module](-[classifier]).[ext]" />
<ivy:resolve file="ivy-xmla.xml" conf="default" />
<ivy:deliver conf="default,default.transitive" deliverpattern="${bin.dir}/ivy-xmla.xml" />
<replace token="default.transitive" value="default" file="${bin.dir}/ivy-xmla.xml"/>
<ivy:retrieve conf="default" pattern="${lib.dir}/[module](-[classifier]).[ext]" />
<ivy:resolve file="ivy-tck.xml" conf="test" />
<ivy:deliver conf="test,test.transitive" deliverpattern="${bin.dir}/ivy-tck.xml" />
<replace token="test.transitive" value="test" file="${bin.dir}/ivy-tck.xml"/>
<ivy:retrieve conf="test" pattern="${testlib.dir}/[module](-[classifier]).[ext]" />
<ivy:resolve file="ivy.xml" conf="default" />
<ivy:deliver conf="default" deliverpattern="${dist.dir}/ivy.xml" />
</target>
<!-- Override from subfloor so we generate a pom per module. -->
<target name="create-pom" depends="install-ivy,ivy.deliver">
<ivy:makepom ivyfile="${dist.dir}/ivy.xml" pomfile="${dist.dir}/pom.xml">
<mapping conf="default" scope="compile" />
<mapping conf="test" scope="test" />
<mapping conf="codegen" scope="test" />
</ivy:makepom>
<ivy:makepom ivyfile="${bin.dir}/ivy-tck.xml" pomfile="${bin.dir}/${ivy.artifact.id}-tck.pom">
<mapping conf="default" scope="test"/>
<mapping conf="test" scope="test"/>
<mapping conf="test.transitive" scope="test"/>
</ivy:makepom>
<ivy:makepom ivyfile="${bin.dir}/ivy-jdk14.xml" pomfile="${bin.dir}/${ivy.artifact.id}-jdk14.pom">
<mapping conf="default" scope="compile"/>
</ivy:makepom>
<ivy:makepom ivyfile="${bin.dir}/ivy-xmla.xml" pomfile="${bin.dir}/${ivy.artifact.id}-xmla.pom">
<mapping conf="default" scope="compile"/>
<mapping conf="default.transitive" scope="compile"/>
</ivy:makepom>
</target>
<target name="ivy.deliver">
<!-- Purposely left empty. Exportable Ivy files are generated when resolving. -->
</target>
<target name="compile.pre" depends="parser"/>
<target name="compile.post">
<copy todir="${classes.dir}">
<fileset dir="${src.dir}">
<include name="META-INF/**" />
</fileset>
</copy>
</target>
<!-- create a retrowoven jar file which will work under jdk1.4 -->
<target name="jar-jdk14">
<copy todir="${classes-jdk14.dir}">
<fileset dir="${classes.dir}"
includes="**/*"/>
</copy>
<antcall target="retroweave"/>
<zip zipfile="${jar-jdk14.file}" update="true">
<zipfileset dir="${classes-jdk14.dir}"
includes="
**/*.class,
**/*.properties,
**/*.xml"/>
</zip>
<delete includeemptydirs="true">
<fileset dir="${classes-jdk14.dir}" includes="**/*"/>
</delete>
</target>
<target name="retroweave">
<taskdef name="retroweaver" classname="com.rc.retroweaver.ant.RetroWeaverTask">
<classpath>
<pathelement location="${lib.dir}/asm.jar" />
<pathelement location="${lib.dir}/asm-commons.jar" />
<pathelement location="${lib.dir}/retroweaver.jar" />
<pathelement location="${lib.dir}/retroweaver-rt.jar" />
</classpath>
</taskdef>
<retroweaver srcdir="${classes-jdk14.dir}" />
</target>
<!--
override to prevent resources in src dir from being copied to classes
and included in jar
-->
<target name="compile.res_copy" depends="install-antcontrib">
<if>
<available file="${res.dir}" />
<then>
<copy todir="${classes.dir}">
<fileset dir="${res.dir}" />
</copy>
</then>
</if>
<if>
<available file="${src.dir}/org/olap4j/impl/nls.properties" />
<then>
<copy todir="${classes.dir}/org/olap4j/impl/">
<fileset file="${src.dir}/org/olap4j/impl/nls.properties" />
</copy>
</then>
</if>
</target>
<!-- override from subfloor to publish tck and xmla artifacts as well -->
<target name="publish-nojar">
<sequential>
<antcall target="subfloor.publish-nojar"/>
<!-- Publish -->
<antcall target="maven-publish-dependencies">
<param name="publish.groupId" value="${ivy.artifact.group}" />
<param name="publish.artifactId" value="${ivy.artifact.id}-tck" />
<param name="publish.version" value="${project.revision}" />
<param name="publish.file" value="${bin.dir}/ivy-tck.xml" />
</antcall>
<antcall target="maven-publish-artifact">
<param name="publish.pomFile" value="${bin.dir}/${ivy.artifact.id}-tck.pom" />
<param name="publish.file" value="${dist.dir}/${ivy.artifact.id}-tck-${project.revision}.jar" />
</antcall>
<antcall target="maven-publish-dependencies">
<param name="publish.groupId" value="${ivy.artifact.group}" />
<param name="publish.artifactId" value="${ivy.artifact.id}-xmla" />
<param name="publish.version" value="${project.revision}" />
<param name="publish.file" value="${bin.dir}/ivy-xmla.xml" />
</antcall>
<antcall target="maven-publish-artifact">
<param name="publish.pomFile" value="${bin.dir}/${ivy.artifact.id}-xmla.pom" />
<param name="publish.file" value="${dist.dir}/${ivy.artifact.id}-xmla-${project.revision}.jar" />
</antcall>
<antcall target="maven-publish-dependencies">
<param name="publish.groupId" value="${ivy.artifact.group}" />
<param name="publish.artifactId" value="${ivy.artifact.id}-jdk14" />
<param name="publish.version" value="${project.revision}" />
<param name="publish.file" value="${bin.dir}/ivy-jdk14.xml" />
</antcall>
<antcall target="maven-publish-artifact">
<param name="publish.pomFile" value="${bin.dir}/${ivy.artifact.id}-jdk14.pom" />
<param name="publish.file" value="${jar-jdk14.file}" />
</antcall>
</sequential>
</target>
<target name="javadoc" depends="clean-stray-package-html">
<mkdir dir="${javadoc.dir}" />
<delete quiet="true" file="${javadoc.dir}/index.html" />
<javadoc sourcepath="${src.dir}" classpathref="javadoc.classpath"
destdir="${javadoc.dir}" packagenames="org.olap4j.*"
excludepackagenames="org.olap4j.impl.*,org.olap4j.mdx.parser.impl.*,org.olap4j.sample.*"
overview="${src.dir}/overview.html"
footer="<a href="http://sourceforge.net/projects/olap4j"><img src="http://sourceforge.net/sflogo.php?group_id=168953&type=1" width="88" height="31" border="0" alt="SourceForge.net_Logo"></a>"
author="true" source="1.5" access="public"
Windowtitle="olap4j, version ${project.revision}" additionalparam="-linksource">
<tag name="pre" description="Pre-condition:" scope="constructors,methods" />
<tag name="post" description="Post-condition:" scope="constructors,methods" />
<tag name="testcase" description="Test-case:" scope="constructors,methods,types" />
<link href="http://download.oracle.com/javase/7/docs/api/" />
</javadoc>
</target>
<!--
Strict javadoc for testing purposes. Includes all packages and
non-public classes and methods.
-->
<target name="javadoc-strict" depends="clean-stray-package-html">
<mkdir dir="${javadoc.dir}" />
<delete quiet="true" file="${javadoc.dir}/index.html" />
<javadoc sourcepath="${src.dir}:${testsrc.dir}" classpathref="test.classpath"
destdir="${javadoc.dir}" packagenames="org.olap4j.*" overview="${src.dir}/overview.html"
footer="<a href="http://sourceforge.net/projects/olap4j"><img src="http://sourceforge.net/sflogo.php?group_id=168953&type=1" width="88" height="31" border="0" alt="SourceForge.net_Logo"></a>"
author="true" source="1.5" access="private"
Windowtitle="olap4j, version ${project.revision}">
<tag name="pre" description="Pre-condition:" scope="constructors,methods" />
<tag name="post" description="Post-condition:" scope="constructors,methods" />
<tag name="testcase" description="Test-case:" scope="constructors,methods,types" />
<link href="http://download.oracle.com/javase/7/docs/api/" />
</javadoc>
</target>
<!--
Generate javadoc with embedded UML diagrams using the yDoc doclet from
yWorks.com. Set ydoc.home in build.properties, then replace
${ydoc.home}/resources/ydoc.license with a full license (free for open
source use).
-->
<target name="javadoc-with-ydoc" depends="clean-stray-package-html">
<mkdir dir="${javadoc.dir}" />
<delete quiet="true" file="${javadoc.dir}/index.html" />
<property name="ps" value="${path.separator}" />
<javadoc sourcepath="${src.dir}" classpathref="javadoc.classpath"
destdir="${javadoc.dir}" packagenames="org.olap4j.*"
excludepackagenames="org.olap4j.impl.*,org.olap4j.mdx.parser.impl.*,org.olap4j.sample.*"
overview="${src.dir}/overview.html"
footer="<a href="http://sourceforge.net/projects/olap4j"><img src="http://sourceforge.net/sflogo.php?group_id=168953&type=1" width="88" height="31" border="0" alt="SourceForge.net_Logo"></a>"
author="true" source="1.5" access="public"
Windowtitle="olap4j, version ${project.revision}" additionalparam="-linksource">
<tag name="pre" description="Pre-condition:" scope="constructors,methods" />
<tag name="post" description="Post-condition:" scope="constructors,methods" />
<tag name="testcase" description="Test-case:" scope="constructors,methods,types" />
<link href="http://download.oracle.com/javase/7/docs/api/" />
<link href="http://junit.sourceforge.net/javadoc/" />
<doclet name="ydoc.doclets.YStandard"
path="${ydoc.home}/lib/ydoc.jar${ps}${ydoc.home}/lib/class2svg.jar${ps}${ydoc.home}/resources${ps}${ydoc.home}/doc">
<param name="-author" />
<param name="-generic" />
<param name="-umlautogen" />
<param name="-tag" value="y.precondition" />
<param name="-tag" value="y.postcondition" />
<param name="-tag" value="y.complexity" />
<param name="-tag" value="param" />
<param name="-tag" value="return" />
<param name="-tag" value="see" />
<param name="-tag" value="y.uml" />
</doclet>
</javadoc>
</target>
<target name="javadoc-pdf" depends="clean-stray-package-html">
<javadoc sourcepath="${src.dir}" classpathref="javadoc.classpath"
packagenames="org.olap4j.*"
excludepackagenames="org.olap4j.impl.*,org.olap4j.mdx.parser.impl.*,org.olap4j.sample.*"
overview="${src.dir}/overview.html" author="true" source="1.5"
access="public">
<doclet name="com.tarsec.javadoc.pdfdoclet.PDFDoclet" path="${testlib.dir}/pdfdoclet.jar">
<param name="-pdf" value="${basedir}/doc/olap4j_api.pdf" />
<param name="-config" value="${basedir}/doc/pdfdoclet.properties" />
</doclet>
</javadoc>
</target>
<target name="clean-stray-package-html"
description="remove stray package.html files under classes to avoid
'multiple sources of package comments' errors">
<delete includeEmptyDirs="false" quiet="true">
<fileset dir="${classes.dir}" includes="**/package.html" />
<fileset dir="${testclasses.dir}" includes="**/package.html" />
</delete>
</target>
</project>
<!-- End build.xml -->