Mercurial > hg4j
comparison build.xml @ 70:993f6f8e1314
Test for log command
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Sun, 23 Jan 2011 03:28:52 +0100 |
| parents | d6d2a630f4a6 |
| children | ce6d23673f2d |
comparison
equal
deleted
inserted
replaced
| 69:5a69397f0f99 | 70:993f6f8e1314 |
|---|---|
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <project name="hgkit" default="samples"> | 2 <!-- |
| 3 Copyright (c) 2010-2011 TMate Software Ltd | |
| 4 | |
| 5 This program is free software; you can redistribute it and/or modify | |
| 6 it under the terms of the GNU General Public License as published by | |
| 7 the Free Software Foundation; version 2 of the License. | |
| 8 | |
| 9 This program is distributed in the hope that it will be useful, | |
| 10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12 GNU General Public License for more details. | |
| 13 | |
| 14 For information on how to redistribute this software under | |
| 15 the terms of a license other than GNU General Public License | |
| 16 contact TMate Software at support@svnkit.com | |
| 17 --> | |
| 18 <project name="jhg" default="samples"> | |
| 3 <description> | 19 <description> |
| 4 description | 20 description |
| 5 </description> | 21 </description> |
| 6 | 22 |
| 7 <target name="samples" depends="build"> | 23 <target name="samples" depends="build"> |
| 8 | 24 |
| 9 <echo message="History of a specific file(s)"/> | 25 <echo message="History of a specific file(s)"/> |
| 10 <java classpath="hgkit.jar" classname="com.tmate.hgkit.console.Log"> | 26 <java classpath="jhg.jar" classname="com.tmate.hgkit.console.Log"> |
| 11 <arg line="design.txt .classpath src/com/tmate/hgkit/ll/LocalHgRepo.java"/> | 27 <arg line="design.txt .classpath src/com/tmate/hgkit/ll/LocalHgRepo.java"/> |
| 12 </java> | 28 </java> |
| 13 | 29 |
| 14 <echo message="Whole repo log"/> | 30 <echo message="Whole repo log"/> |
| 15 <java classpath="hgkit.jar" classname="com.tmate.hgkit.console.Log"/> | 31 <java classpath="jhg.jar" classname="com.tmate.hgkit.console.Log"/> |
| 16 | 32 |
| 17 <echo message="Content of a file"/> | 33 <echo message="Content of a file"/> |
| 18 <java classpath="hgkit.jar" classname="com.tmate.hgkit.console.Cat"> | 34 <java classpath="jhg.jar" classname="com.tmate.hgkit.console.Cat"> |
| 19 <arg line="src/com/tmate/hgkit/ll/Revlog.java"/> | 35 <arg line="src/com/tmate/hgkit/ll/Revlog.java"/> |
| 20 </java> | 36 </java> |
| 21 | 37 |
| 22 </target> | 38 </target> |
| 39 | |
| 40 <target name="tests" depends="build, build-tests"> | |
| 41 <java classpath="jhg.jar,jhg-tests.jar" classname="org.tmatesoft.hg.test.TestHistory"/> | |
| 42 <java classpath="jhg.jar,jhg-tests.jar" classname="org.tmatesoft.hg.test.TestManifest"/> | |
| 43 <java classpath="jhg.jar,jhg-tests.jar" classname="org.tmatesoft.hg.test.TestStatus"/> | |
| 44 </target> | |
| 23 | 45 |
| 24 <target name="build"> | 46 <target name="build"> |
| 25 <mkdir dir="bin"/> | 47 <mkdir dir="bin"/> |
| 26 <javac srcdir="src" destdir="bin"/> | 48 <javac srcdir="src" destdir="bin"/> |
| 27 <jar destfile="hgkit.jar" basedir="bin"/> | 49 <jar destfile="jhg.jar"> |
| 50 <fileset dir="bin/"> | |
| 51 <include name="org/tmatesoft/hg/core/**" /> | |
| 52 <include name="org/tmatesoft/hg/util/**" /> | |
| 53 <include name="org/tmatesoft/hg/repo/**" /> | |
| 54 <include name="org/tmatesoft/hg/internal/**" /> | |
| 55 </fileset> | |
| 56 </jar> | |
| 57 </target> | |
| 58 | |
| 59 <target name="build-tests"> | |
| 60 <mkdir dir="bin"/> | |
| 61 <javac srcdir="test" destdir="bin"/> | |
| 62 <jar destfile="jhg-tests.jar" basedir="bin" includes="org/tmatesoft/hg/test/**/*"/> | |
| 63 </target> | |
| 64 | |
| 65 <target name="build-cmdline"> | |
| 66 <mkdir dir="bin"/> | |
| 67 <javac srcdir="cmdline" destdir="bin"/> | |
| 68 <jar destfile="jhg-cl.jar" basedir="bin" includes="org/tmatesoft/hg/console/**/*"/> | |
| 28 </target> | 69 </target> |
| 29 | 70 |
| 30 </project> | 71 </project> |
