forked from claeis/ili2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-ili2db.xml
131 lines (119 loc) · 5.25 KB
/
build-ili2db.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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="jar" name="ili2db">
<!-- set global properties for this build -->
<property name="src" value="${basedir}/src"/>
<property name="build" value="${basedir}/build"/>
<property name="dist" value="${basedir}/dist"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<property name="projectjar" value="${build}/jar/${ant.project.name}.jar"/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${build}/jar"/>
<mkdir dir="${dist}"/>
</target>
<target depends="init" name="compile">
<!-- Compile the java code from ${src} into ${build}/classes -->
<mkdir dir="${build}/classes"/>
<javac destdir="${build}/classes" includes="**/*.java" excludes="**/test/*.java">
<classpath>
<pathelement location="lib/ehisqlgen.jar"/>
<pathelement location="lib/ili2c.jar"/>
<pathelement location="lib/iox.jar"/>
<pathelement location="lib/iox-api.jar"/>
</classpath>
<src path="${src}" />
<!-- <src path="${build}/src"/> -->
</javac>
</target>
<target depends="init" name="javadocs">
<mkdir dir="${build}/javadoc/api"/>
<javadoc Public="true" Windowtitle="${ant.project.name}" destdir="${build}/javadoc/api">
<sourcepath path="${src}"/>
</javadoc>
</target>
<target depends="init,compile" name="jar">
<propertyfile file="${src}/ch/ehi/ili2db/Version.properties">
<!-- <entry key="versionMicro" type="int" value="1" operation="+"/> -->
<entry key="versionDate" type="date" value="now" pattern="yyyyMMdd"/>
</propertyfile>
<delete file="${projectjar}" quiet="true"/>
<jar jarfile="${projectjar}" manifest="other/manifest-ili2db">
<fileset dir="${build}/classes" includes="**/*.class"/>
<fileset dir="${src}" includes="**/*.properties"/>
<!-- <fileset dir="resources/de" includes="**/*.properties"/>
<fileset dir="resources/fr" includes="**/*.properties"/>
<fileset dir="resources/it" includes="**/*.properties"/> -->
<fileset dir="${src}" includes="**/*.gif"/>
<fileset dir="${src}" includes="**/*.jpg"/>
<fileset dir="${src}" includes="**/*.png"/>
<zipfileset src="lib/ehisqlgen.jar"/>
<zipfileset src="lib/iox.jar"/>
<zipfileset src="lib/iox-api.jar"/>
</jar>
</target>
<target depends="init" name="buildnr">
<property file="${src}/ch/ehi/ili2db/Version.properties" prefix="buildnr."/>
<property name="buildnr" value="${buildnr.versionMajor}.${buildnr.versionMinor}.${buildnr.versionMicro}"/>
<!-- <property name="buildnr" value="${DSTAMP}"/> -->
</target>
<target depends="init,buildnr" name="bindist">
<delete file="${dist}/${ant.project.name}-${buildnr}.zip" quiet="true"/>
<zip zipfile="${dist}/${ant.project.name}-${buildnr}.zip">
<zipfileset dir="${build}/jar" prefix="${ant.project.name}-${buildnr}">
<patternset includes="${ant.project.name}.jar"/>
</zipfileset>
<zipfileset dir="${basedir}/lib" prefix="${ant.project.name}-${buildnr}">
<patternset includes="ili2c.jar"/>
<patternset includes="iom_java.dll"/>
<patternset includes="xerces-c_2_6.dll"/>
</zipfileset>
<zipfileset dir="${basedir}/other" prefix="${ant.project.name}-${buildnr}">
<patternset includes="ili2db.bat"/>
</zipfileset>
<!-- <zipfileset dir="." prefix="${ant.project.name}-${buildnr}">
<patternset includes="lib/**"/>
<patternset includes="docs/LICENSE.*"/>
<patternset includes="docs/README.txt"/>
<patternset includes="docs/CHANGELOG.txt"/>
<patternset includes="docs/ili2ora/ili2ora05.ili"/>
<patternset includes="docs/ili2ora/MappingConfig.jpeg"/>
<patternset includes="sample/zpl/**"/>
</zipfileset> -->
</zip>
</target>
<target depends="init,buildnr" name="srcdist">
<delete file="${dist}/${ant.project.name}-${buildnr}.src.zip" quiet="true"/>
<zip zipfile="${dist}/${ant.project.name}-${buildnr}.src.zip">
<zipfileset dir="." prefix="${ant.project.name}-${buildnr}">
<patternset includes="build.xml"/>
<!-- <patternset includes="lib/**"/> -->
<patternset includes="other/manifest"/>
<patternset includes="other/ili2ora.bat"/>
<patternset includes="docs/LICENSE.*"/>
<patternset includes="docs/README.txt"/>
<patternset includes="docs/README.src.txt"/>
<patternset includes="docs/CHANGELOG.txt"/>
<patternset includes="docs/ili2ora/**"/>
<patternset includes="sample/zpl/**"/>
<patternset includes="src/**" excludes="**/CVS/*;**/bak~/*"/>
<patternset includes="resources/de/**/*.properties"/>
<patternset includes="resources/fr/**/*.properties"/>
<patternset includes="resources/it/**/*.properties"/>
<patternset includes="lib/ojdbc14.jar"/>
<patternset includes="lib/ili2c.jar"/>
<patternset includes="lib/iom_java.dll"/>
<patternset includes="lib/xerces-c_2_6.dll"/>
<patternset includes="lib/ehisqlgen.jar"/>
<patternset includes="lib/sdoapi.jar"/>
<patternset includes="lib/iom_java.jar"/>
</zipfileset>
</zip>
</target>
<target name="clean">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>