-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.xml
61 lines (53 loc) · 2.38 KB
/
build.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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<project default="dist-cubrid" name="CUBRID JDBC Driver">
<property name="output" value="${basedir}/output"/>
<property file="${output}/build.properties" />
<property name="cubrid-jar-file" value="${basedir}/JDBC-${version}-cubrid.jar"/>
<property name="cubrid-src-jar-file" value="${basedir}/JDBC-${version}-cubrid-src.jar"/>
<property name="bin-cubrid" location="${output}/bin-cubrid"/>
<property name="src-cubrid" location="${output}/src-cubrid"/>
<property name="src" value="${basedir}/src"/>
<target name="init">
</target>
<target name="clean">
<delete failonerror="false" includeEmptyDirs="true">
<fileset dir="${bin-cubrid}"/>
<fileset dir="${src-cubrid}"/>
<fileset dir="${basedir}">
<include name="*.jar"/>
</fileset>
</delete>
</target>
<target name="src-jar-cubrid" depends="clean">
<mkdir dir="${bin-cubrid}"/>
<mkdir dir="${src-cubrid}"/>
<copy file="${output}/CUBRID-JDBC-${version}" tofile="${src-cubrid}/CUBRID-JDBC-${version}"/>
<copy todir="${src-cubrid}" filtering="true">
<fileset dir="${src}/jdbc">
<include name="**/*.java"/>
</fileset>
<filterset>
<filter token="JDBC_DRIVER_VERSION_STRING" value="${version}"/>
</filterset>
</copy>
<jar jarfile="${cubrid-src-jar-file}">
<fileset dir="${src-cubrid}"/>
<fileset file="${src}/jdbc/sql-error-codes.xml"/>
<service type="java.sql.Driver" provider="cubrid.jdbc.driver.CUBRIDDriver"/>
</jar>
</target>
<target name="compile-cubrid" depends="src-jar-cubrid">
<javac destdir="${bin-cubrid}" source="1.6" target="1.6" encoding="EUC-KR" debug="true" debuglevel="lines,source,vars" deprecation="off" includeantruntime="no">
<src path="${src-cubrid}"/>
</javac>
</target>
<target name="dist-cubrid" depends="compile-cubrid">
<jar jarfile="${cubrid-jar-file}">
<fileset dir="${bin-cubrid}"/>
<fileset file="${src}/jdbc/sql-error-codes.xml"/>
<fileset file="${output}/CUBRID-JDBC-${version}"/>
<service type="java.sql.Driver" provider="cubrid.jdbc.driver.CUBRIDDriver"/>
</jar>
</target>
</project>