-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-plsqlcodecoverage.xml
More file actions
82 lines (72 loc) · 3.03 KB
/
build-plsqlcodecoverage.xml
File metadata and controls
82 lines (72 loc) · 3.03 KB
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
<project name="plsqlcodecoverage" default="dist" basedir=".">
<description>
build file for plsqlcodecoverage
</description>
<property environment="env"/>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="parser_src" location="plsql-parser/src"/>
<property name="oracjdbclib" value="${env.orajdbclib}"/>
<basename property="oracjdbclib_base" file="${oracjdbclib}"/>
<property name="jre8" value="${env.jre8}"/>
<target name="clean"
description="clean up" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="init" depends="clean">
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<javac target="1.8" source="1.8" destdir="${build}"
includeantruntime="false"
bootclasspath="${jre8}/lib/rt.jar"
deprecation="true"
debug="true">
<src path="${src}" />
<src path="${parser_src}" />
<compilerarg value="-Xlint:unchecked"/>
<classpath>
<pathelement location="${oracjdbclib}"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile"
description="generate the distribution, with the main jar and a manifest which references the oracle jdbc file" >
<mkdir dir="${dist}/plsqlcodecoverage"/>
<copy file="${oracjdbclib}" todir="${dist}/plsqlcodecoverage"/>
<jar jarfile="${dist}/plsqlcodecoverage/main.jar" basedir="${build}">
<!-- needed for the image file -->
<zipfileset dir="src/otherstuff" includes="*" prefix="otherstuff"/>
<manifest>
<attribute name="Main-Class"
value="spinat.codecoverage.Main"/>
<attribute name="Class-Path" value="./${oracjdbclib_base}"/>
</manifest>
</jar>
</target>
<target name="dist-fat" depends="compile"
description="generate the distribution in one big file" >
<jar jarfile="${dist}/plsqlcodecoverage.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class"
value="spinat.codecoverage.Main"/>
</manifest>
<zipfileset src="${oracjdbclib}" excludes="META-INF/*" />
<zipfileset dir="src/otherstuff" includes="*" prefix="otherstuff"/>
</jar>
</target>
<target name="dist-lean" depends="compile"
description="generate the distribution without oracle JDBC" >
<jar jarfile="${dist}/plsqlcodecoverage.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class"
value="spinat.codecoverage.Main"/>
</manifest>
<zipfileset dir="src/otherstuff" includes="*" prefix="otherstuff"/>
</jar>
</target>
</project>