This repository has been archived by the owner on Dec 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
51 lines (41 loc) · 1.89 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
<project name="ibatis-implgen" default="dist" basedir=".">
<property name="app.version" value="0.0.3"/>
<path id="compile.classpath">
<fileset dir="lib/" includes="*.jar"/>
</path>
<path id="annotation-classpath">
<fileset file="dist/ibatis-implgen-${app.version}.jar"/>
<fileset file="${java.home}/lib/tools.jar"/>
<fileset file="lib/ibatis-2.3.0.677.jar"/>
</path>
<target name="clean">
<delete dir="build"/>
<delete dir="dist"/>
</target>
<target name="prepare">
<mkdir dir="build/classes"/>
<mkdir dir="dist/"/>
<mkdir dir="build/generated"/>
</target>
<target name="compile-jsp-templates">
<taskdef name="jsptem" classname="org.tuckey.jsptem.JspTemAntTask" classpath="lib/jsptem-0.6.jar"/>
<jsptem srcdir="src" destdir="src" listfiles="true"/>
</target>
<target name="compile" depends="prepare">
<javac srcdir="src/" destdir="build/classes/" classpathref="compile.classpath"
excludes="**/generated/*" debug="true" target="1.5" source="1.5"/>
</target>
<target name="dist" depends="clean,compile" description="Build distribution">
<jar jarfile="dist/ibatis-implgen-${app.version}.jar" basedir="build/classes"/>
</target>
<target name="generate-example" depends="dist" description="Generated implementations of example Dao">
<apt srcdir="src" preprocessdir="build/generated"
classpathref="annotation-classpath" compile="false"
factory="com.ibatis.sqlmap.implgen.IbatisImplGenAnnotationProcessor"
includes="**/example/*">
<!-- <option name="debug" value="true"/> -->
<option name="outputDaoSnippet" value="true"/>
<option name="outputSqlMapSnippet" value="true"/>
</apt>
</target>
</project>