This repository was archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
45 lines (39 loc) · 1.29 KB
/
build.xml
File metadata and controls
45 lines (39 loc) · 1.29 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
<project default="build">
<property name="lib.dir" value="lib"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="build" />
<delete dir="dist" />
</target>
<target name="compile">
<mkdir dir="build/classes" />
<javac srcdir="src"
includeantruntime="false"
destdir="build/classes"
classpathref="classpath"
debug="true"
debuglevel="lines,vars,source">
<compilerarg value="-Xlint:unchecked"/>
</javac>
<copy todir="build/classes">
<fileset dir="src" excludes="**/*.java" />
</copy>
</target>
<target name="jar">
<mkdir dir="dist" />
<jar destfile="dist/hbsqli.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class"
value="net.autoloop.HBaseSQLImport" />
<attribute name="Class-Path"
value="commons-configuration-1.6.jar hadoop-core-1.1.2.jar hbase-0.94.7.jar protobuf-java-2.4.0a.jar commons-io-2.1.jar slf4j-api-1.4.3.jar commons-lang-2.4.jar slf4j-log4j12-1.4.3.jar commons-logging-1.1.1.jar zookeeper-3.4.5.jar gson-2.2.4.jar log4j-1.2.15.jar sqljdbc4.jar" />
</manifest>
</jar>
<copy todir="dist">
<fileset dir="${lib.dir}" />
</copy>
</target>
<target name="build" depends="compile,jar" />
</project>