-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
66 lines (53 loc) · 1.94 KB
/
build.xml
File metadata and controls
66 lines (53 loc) · 1.94 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
<project>
<property name="lib.dir" value="libs"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="classes"/>
</target>
<target name="compile">
<mkdir dir="classes"/>
<javac srcdir="src" destdir="classes" classpathref="classpath">
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="jars"/>
<mkdir dir="jar_tmp"/>
<copy todir="jar_tmp">
<fileset dir="classes" includes="**/*.class"/>
</copy>
<!-- want to create a single jar - so unjar all the libs we depend and add them to our jar -->
<unjar dest="jar_tmp">
<patternset>
<include name="**/*.class"/>
</patternset>
<fileset dir="libs">
<include name="**/opencsv-2.2.jar"/>
</fileset>
</unjar>
<jar destfile="jars/splunk.jar" basedir="jar_tmp">
<manifest>
<attribute name="DataWrapperClassName" value="com.splunk.udx.MedSplunkForeignDataWrapper" />
<attribute name="PluginFactoryClassName" value="com.splunk.udx.PostgresPersonalityFactory" />
</manifest>
</jar>
<delete dir="jar_tmp" />
</target>
<!-- Creates an archive (SplunkLucidDb.tgz) including all files/docs needed during a release -->
<target name="release" depends="jar">
<delete dir="SplunkLucidDb" />
<mkdir dir="SplunkLucidDb" />
<copy file="jars/splunk.jar" todir="SplunkLucidDb/" />
<copy todir="SplunkLucidDb">
<fileset dir="build_files"/>
</copy>
<tar destfile="SplunkLucidDb.tgz" compression="gzip" >
<tarfileset dir="SplunkLucidDb/" prefix="SplunkLucidDb/">
<include name="*"/>
</tarfileset>
</tar>
<delete dir="SplunkLucidDb" />
</target>
</project>