summaryrefslogtreecommitdiffstats
path: root/java/MyMyBatis/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'java/MyMyBatis/build.xml')
-rw-r--r--java/MyMyBatis/build.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/java/MyMyBatis/build.xml b/java/MyMyBatis/build.xml
new file mode 100644
index 0000000..4d17c6c
--- /dev/null
+++ b/java/MyMyBatis/build.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:ivy="antlib:org.apache.ivy.ant"
+ name="MyMyBatis"
+ basedir="."
+ default="test">
+
+ <target name="resolve" description="retrieve dependencies with Ivy">
+ <ivy:resolve file="ivy.xml" log="download-only"/>
+ <ivy:cachepath pathid="ivy.deps.default" conf="default" />
+ </target>
+
+ <target name="compile" depends="resolve">
+ <mkdir dir="./build" />
+ <javac srcdir="./src"
+ destdir="./build"
+ includeantruntime="false">
+ <classpath refid="ivy.deps.default"/>
+ <compilerarg value="-Xlint:all"/>
+ <compilerarg value="-Xlint:-processing"/>
+ </javac>
+ </target>
+
+ <target name="test" depends="compile">
+ <java classname="ch.asynk.Main" fork="true">
+ <classpath>
+ <dirset dir="./src"/>
+ <dirset dir="./build"/>
+ </classpath>
+ <classpath refid="ivy.deps.default"/>
+ </java>
+ </target>
+
+</project>