forked from splunk/splunk-library-javalogging
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
83 lines (49 loc) · 1.68 KB
/
build.xml
File metadata and controls
83 lines (49 loc) · 1.68 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
83
<project name="SPLUNK Logging" default="build_release" basedir="..">
<description>
SPLUNK Logging Build Script
</description>
<property file="build/build.properties" />
<path id="project.class.path">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<delete dir="${temp_build}" />
<mkdir dir="${temp_build}" />
</target>
<target name="compile" depends="init" description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<mkdir dir="${temp_build}/${classes}" />
<javac srcdir="${src}" destdir="${temp_build}/${classes}" target="${javaClassTarget}">
<classpath refid="project.class.path" />
</javac>
</target>
<target name="build_release" depends="compile" description="generate a distribution">
<!-- Create the distribution directory -->
<copy todir="${temp_build}/${lib}">
<fileset dir="${lib}" />
</copy>
<copy todir="${temp_build}/${config}">
<fileset dir="${config}" />
</copy>
<copy todir="${temp_build}/${javadocs}">
<fileset dir="${javadocs}" />
</copy>
<copy todir="${temp_build}/3rdparty_licenses">
<fileset dir="3rdparty_licenses" />
</copy>
<copy todir="${temp_build}">
<fileset file="LICENSE" />
<fileset file="README" />
</copy>
<jar jarfile="${temp_build}/${lib}/${main_jar}">
<fileset dir="${temp_build}/${classes}" includes="com/dtdsoftware/splunk/**" />
</jar>
<delete dir="${temp_build}/${classes}" />
<tar destfile="${release}/${id}-${version}${suffix}" compression="${compressionType}">
<zipfileset dir="${temp_build}" prefix="${id}" />
</tar>
<delete dir="${temp_build}" />
</target>
</project>