Mercurial > hg4j
comparison build.xml @ 101:777ab7034c1b
Switch to JUnit for tests
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Fri, 28 Jan 2011 03:07:25 +0100 |
| parents | ee4458416579 |
| children | a3a2e5deb320 |
comparison
equal
deleted
inserted
replaced
| 100:b71b3f7d24d4 | 101:777ab7034c1b |
|---|---|
| 13 | 13 |
| 14 For information on how to redistribute this software under | 14 For information on how to redistribute this software under |
| 15 the terms of a license other than GNU General Public License | 15 the terms of a license other than GNU General Public License |
| 16 contact TMate Software at support@svnkit.com | 16 contact TMate Software at support@svnkit.com |
| 17 --> | 17 --> |
| 18 <project name="jhg" default="samples"> | 18 <project name="hg4j" default="samples"> |
| 19 <description> | 19 <description> |
| 20 description | 20 Build, test and showcase hg4j |
| 21 </description> | 21 </description> |
| 22 | |
| 23 <property name="junit.jar" value="lib/junit-4.8.2.jar"/> | |
| 22 | 24 |
| 23 <target name="samples" depends="build-cmdline"> | 25 <target name="samples" depends="build-cmdline"> |
| 24 | 26 |
| 25 <echo message="History of a specific file(s)"/> | 27 <echo message="History of a specific file(s)"/> |
| 26 <java classpath="jhg.jar;jhg-cl.jar" classname="org.tmatesoft.hg.console.Log"> | 28 <java classpath="hg4j.jar;hg4j-console.jar" classname="org.tmatesoft.hg.console.Log"> |
| 27 <arg line="design.txt .classpath src/com/tmate/hgkit/ll/LocalHgRepo.java"/> | 29 <arg line="design.txt .classpath src/com/tmate/hgkit/ll/LocalHgRepo.java"/> |
| 28 </java> | 30 </java> |
| 29 | 31 |
| 30 <echo message="Whole repo log"/> | 32 <echo message="Whole repo log"/> |
| 31 <java classpath="jhg.jar;jhg-cl.jar" classname="org.tmatesoft.hg.console.Log"/> | 33 <java classpath="hg4j.jar;hg4j-console.jar" classname="org.tmatesoft.hg.console.Log"/> |
| 32 | 34 |
| 33 <echo message="Content of a file"/> | 35 <echo message="Content of a file"/> |
| 34 <java classpath="jhg.jar;jhg-cl.jar" classname="org.tmatesoft.hg.console.Cat"> | 36 <java classpath="hg4j.jar;hg4j-console.jar" classname="org.tmatesoft.hg.console.Cat"> |
| 35 <arg line="src/com/tmate/hgkit/ll/Revlog.java"/> | 37 <arg line="src/com/tmate/hgkit/ll/Revlog.java"/> |
| 36 </java> | 38 </java> |
| 37 | 39 |
| 38 </target> | 40 </target> |
| 39 | 41 |
| 40 <target name="tests" depends="build-tests"> | 42 <target name="tests" depends="build-tests"> |
| 41 <java classpath="jhg.jar;jhg-tests.jar" classname="org.tmatesoft.hg.test.TestHistory"/> | 43 <junit printsummary="on"> |
| 42 <java classpath="jhg.jar;jhg-tests.jar" classname="org.tmatesoft.hg.test.TestManifest"/> | 44 <classpath path="hg4j.jar;hg4j-tests.jar;${junit.jar}"/> |
| 43 <java classpath="jhg.jar;jhg-tests.jar" classname="org.tmatesoft.hg.test.TestStatus"/> | 45 <test name="org.tmatesoft.hg.test.TestHistory"/> |
| 46 <test name="org.tmatesoft.hg.test.TestManifest"/> | |
| 47 <test name="org.tmatesoft.hg.test.TestStatus"/> | |
| 48 <test name="org.tmatesoft.hg.test.TestStorePath"/> | |
| 49 </junit> | |
| 50 <!-- | |
| 51 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestHistory"/> | |
| 52 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestManifest"/> | |
| 53 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestStatus"/> | |
| 54 --> | |
| 44 </target> | 55 </target> |
| 45 | 56 |
| 46 <target name="build"> | 57 <target name="build"> |
| 47 <mkdir dir="bin"/> | 58 <mkdir dir="bin"/> |
| 48 <javac srcdir="src" destdir="bin"/> | 59 <javac srcdir="src" destdir="bin"/> |
| 49 <jar destfile="jhg.jar"> | 60 <jar destfile="hg4j.jar"> |
| 50 <fileset dir="bin/"> | 61 <fileset dir="bin/"> |
| 51 <include name="org/tmatesoft/hg/core/**" /> | 62 <include name="org/tmatesoft/hg/core/**" /> |
| 52 <include name="org/tmatesoft/hg/util/**" /> | 63 <include name="org/tmatesoft/hg/util/**" /> |
| 53 <include name="org/tmatesoft/hg/repo/**" /> | 64 <include name="org/tmatesoft/hg/repo/**" /> |
| 54 <include name="org/tmatesoft/hg/internal/**" /> | 65 <include name="org/tmatesoft/hg/internal/**" /> |
| 57 </target> | 68 </target> |
| 58 | 69 |
| 59 <target name="build-tests" depends="build"> | 70 <target name="build-tests" depends="build"> |
| 60 <mkdir dir="bin"/> | 71 <mkdir dir="bin"/> |
| 61 <javac srcdir="test" destdir="bin"/> | 72 <javac srcdir="test" destdir="bin"/> |
| 62 <jar destfile="jhg-tests.jar" basedir="bin" includes="org/tmatesoft/hg/test/**"/> | 73 <jar destfile="hg4j-tests.jar" basedir="bin" includes="org/tmatesoft/hg/test/**"/> |
| 63 </target> | 74 </target> |
| 64 | 75 |
| 65 <target name="build-cmdline" depends="build"> | 76 <target name="build-cmdline" depends="build"> |
| 66 <mkdir dir="bin"/> | 77 <mkdir dir="bin"/> |
| 67 <javac srcdir="cmdline" destdir="bin"/> | 78 <javac srcdir="cmdline" destdir="bin"/> |
| 68 <jar destfile="jhg-cl.jar" basedir="bin" includes="org/tmatesoft/hg/console/**"/> | 79 <jar destfile="hg4j-console.jar" basedir="bin" includes="org/tmatesoft/hg/console/**"/> |
| 69 </target> | 80 </target> |
| 70 | 81 |
| 71 </project> | 82 </project> |
