Mercurial > hg4j
comparison build.xml @ 147:a05145db4d0c
Bring test repos along with us to recreate testbench
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 22 Feb 2011 15:49:26 +0100 |
parents | 44185c4a850c |
children | a4ec5e087017 |
comparison
equal
deleted
inserted
replaced
146:8c9f729f4dfa | 147:a05145db4d0c |
---|---|
62 <arg line="--debug" /> | 62 <arg line="--debug" /> |
63 </java> | 63 </java> |
64 </target> | 64 </target> |
65 | 65 |
66 <target name="tests" depends="build-tests"> | 66 <target name="tests" depends="build-tests"> |
67 <property name="test-repos-root" value="${java.io.tmpdir}/hg4j-tests/"/> | |
68 <delete dir="${test-repos-root}" quiet="yes"/> | |
69 <unjar src="test-repos.jar" dest="${test-repos-root}"/> | |
67 <junit> | 70 <junit> |
68 <classpath path="${hg4j.jar};${hg4j-tests.jar};${junit.jar}" /> | 71 <classpath path="${hg4j.jar};${hg4j-tests.jar};${junit.jar}" /> |
69 <formatter type="xml" /> | 72 <formatter type="xml" /> |
70 <formatter type="plain" usefile="no" /> | 73 <formatter type="plain" usefile="no" /> |
74 <sysproperty key="hg4j.tests.repos" value="${test-repos-root}"/> | |
71 <test name="org.tmatesoft.hg.test.TestHistory" /> | 75 <test name="org.tmatesoft.hg.test.TestHistory" /> |
72 <test name="org.tmatesoft.hg.test.TestManifest" /> | 76 <test name="org.tmatesoft.hg.test.TestManifest" /> |
73 <test name="org.tmatesoft.hg.test.TestStatus" /> | 77 <test name="org.tmatesoft.hg.test.TestStatus" /> |
74 <test name="org.tmatesoft.hg.test.TestStorePath" /> | 78 <test name="org.tmatesoft.hg.test.TestStorePath" /> |
75 </junit> | 79 </junit> |
76 <!-- | |
77 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestHistory"/> | |
78 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestManifest"/> | |
79 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestStatus"/> | |
80 --> | |
81 </target> | 80 </target> |
82 | 81 |
83 <target name="build"> | 82 <target name="build"> |
84 <mkdir dir="bin" /> | 83 <mkdir dir="bin" /> |
85 <javac srcdir="src" destdir="bin" /> | 84 <javac srcdir="src" destdir="bin" /> |
88 <include name="org/tmatesoft/hg/core/**" /> | 87 <include name="org/tmatesoft/hg/core/**" /> |
89 <include name="org/tmatesoft/hg/util/**" /> | 88 <include name="org/tmatesoft/hg/util/**" /> |
90 <include name="org/tmatesoft/hg/repo/**" /> | 89 <include name="org/tmatesoft/hg/repo/**" /> |
91 <include name="org/tmatesoft/hg/internal/**" /> | 90 <include name="org/tmatesoft/hg/internal/**" /> |
92 </fileset> | 91 </fileset> |
92 <fileset file="COPYING"/> | |
93 </jar> | 93 </jar> |
94 </target> | 94 </target> |
95 | 95 |
96 <target name="build-tests" depends="build"> | 96 <target name="build-tests" depends="build"> |
97 <mkdir dir="bin" /> | 97 <mkdir dir="bin" /> |
98 <javac srcdir="test" destdir="bin" /> | 98 <javac srcdir="test" destdir="bin" /> |
99 <jar destfile="${hg4j-tests.jar}" basedir="bin" includes="org/tmatesoft/hg/test/**" /> | 99 <jar destfile="${hg4j-tests.jar}"> |
100 <fileset dir="bin" includes="org/tmatesoft/hg/test/**"/> | |
101 <fileset file="COPYING"/> | |
102 </jar> | |
100 </target> | 103 </target> |
101 | 104 |
102 <target name="build-cmdline" depends="build"> | 105 <target name="build-cmdline" depends="build"> |
103 <mkdir dir="bin" /> | 106 <mkdir dir="bin" /> |
104 <javac srcdir="cmdline" destdir="bin" /> | 107 <javac srcdir="cmdline" destdir="bin" /> |
105 <jar destfile="${hg4j-console.jar}" basedir="bin" includes="org/tmatesoft/hg/console/**" /> | 108 <jar destfile="${hg4j-console.jar}"> |
109 <fileset dir="bin/" includes="org/tmatesoft/hg/console/**"/> | |
110 <fileset file="COPYING"/> | |
111 </jar> | |
106 </target> | 112 </target> |
107 | 113 |
108 </project> | 114 </project> |