/
dist.xml
116 lines (108 loc) · 5.84 KB
/
dist.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
<?xml version="1.0"?>
<project name="dist">
<!-- =================================================================== -->
<!-- Creates the API documentation -->
<!-- =================================================================== -->
<target name="javadocs" depends="init,set-driver-sources">
<mkdir dir="${build.docs}"/>
<javadoc destdir="${build.docs}"
author="true"
version="true"
windowtitle="${Name} API"
doctitle="${Name}"
additionalparam="${javadoc.additionalparam}"
excludepackagenames="${excludedPackages}"
bottom="Copyright &copy; 2001-${YEAR} Jaybird (Firebird JDBC/JCA) team. All rights reserved.">
<arg line="${java.module.arg}"/>
<classpath refid="javac.driver.classpath"/>
<sourcepath>
<pathelement path="${source.java}"/>
<pathelement path="${source.jna-client}"/>
</sourcepath>
<sourcepath refid="source.java.openoffice"/>
<sourcepath refid="source.java.additional"/>
<link href="http://docs.oracle.com/javase/8/docs/api/"/>
</javadoc>
</target>
<!-- =================================================================== -->
<!-- Creates the html documentation -->
<!-- =================================================================== -->
<target name="docs" depends="init">
</target>
<!-- =================================================================== -->
<!-- Puts the files in the right place for a (manual) Maven release -->
<!-- =================================================================== -->
<target name="mavenPrepare" depends="mavenDist,mavenRelocation"/>
<target name="mavenDist" depends="jars">
<mkdir dir="${maven.artifact.location}"/>
<copy file="${build.lib}/${archive.name.simple}" tofile="${maven.artifact.location}/${archive.maven.simple}"/>
<copy file="${build.lib}/${archive.name.sources}" tofile="${maven.artifact.location}/${archive.maven.sources}"/>
<copy file="${build.lib}/${archive.name.javadoc}" tofile="${maven.artifact.location}/${archive.maven.javadoc}"/>
<copy file="${maven.pom.template}" tofile="${maven.artifact.location}/${maven.pom.target}">
<filterset refid="maven.filterSet"/>
</copy>
</target>
<target name="mavenRelocation" depends="init" if="maven.generateRelocation">
<mkdir dir="${maven.relocation.location}"/>
<copy file="${maven.relocation.template}" tofile="${maven.relocation.location}/${maven.relocation.target}">
<filterset refid="maven.filterSet"/>
</copy>
</target>
<!-- =================================================================== -->
<!-- Creates the distribution -->
<!-- =================================================================== -->
<target name="dist" depends="jars,buildalldocs,mavenPrepare">
<mkdir dir="${build.dist}"/>
<zip zipfile="${build.dist}/${Name}-${version.full}.zip">
<fileset dir="${build.lib}">
<include name="${archive.name.rar}"/>
<include name="${archive.name.full}"/>
<include name="${archive.name.simple}"/>
<include name="${archive.name.sources}"/>
<include name="${archive.name.javadoc}"/>
</fileset>
<fileset dir="${build.documentation}">
<include name="release_notes.html"/>
</fileset>
<fileset dir=".">
<include name="CONTRIBUTING.md"/>
</fileset>
<zipfileset dir="${build.lib}" prefix="lib">
<include name="connector-api-1.5.jar"/>
</zipfileset>
<zipfileset dir="${module.thirdparty}" prefix="lib">
<include name="antlr-runtime-4.7.jar"/>
</zipfileset>
<zipfileset dir="${module.thirdparty}" prefix="lib">
<include name="jna-4.4.0.jar"/>
</zipfileset>
<zipfileset dir="${build.documentation}" prefix="docs">
<include name="faq.html"/>
</zipfileset>
<zipfileset dir="${build.docs}" prefix="docs/api">
<include name="**/*"/>
</zipfileset>
</zip>
</target>
<!-- =================================================================== -->
<!-- Packages the source files with ZIP -->
<!-- Also see task jar-sources in archive.xml -->
<!-- =================================================================== -->
<target name="src-zip" depends="init">
<zip zipfile="${Name}-src-${version.full}.zip" basedir="../.." includes="clients/java/**"
excludes="clients/java/**.zip"/>
</target>
<!-- =================================================================== -->
<!-- Packages the distribution with ZIP -->
<!-- =================================================================== -->
<target name="dist-zip" depends="dist">
<zip zipfile="${Name}-${version.full}.zip" basedir="${dist.dir}" includes="src/**"/>
</target>
<!-- =================================================================== -->
<!-- Packages the distribution with TAR-GZIP -->
<!-- =================================================================== -->
<target name="dist-tgz" depends="dist">
<tar tarfile="${Name}-${version.full}.tar" basedir="${dist.dir}" includes="src/**"/>
<gzip zipfile="${Name}-${version.full}.tar.gz" src="${Name}-${version}.tar"/>
</target>
</project>