Mercurial > jhg
comparison build.xml @ 86:ee4458416579
Build command line tools into separate jar
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 26 Jan 2011 01:06:37 +0100 |
parents | 40d04c4f771e |
children | 777ab7034c1b |
comparison
equal
deleted
inserted
replaced
85:ade65afe0906 | 86:ee4458416579 |
---|---|
18 <project name="jhg" default="samples"> | 18 <project name="jhg" default="samples"> |
19 <description> | 19 <description> |
20 description | 20 description |
21 </description> | 21 </description> |
22 | 22 |
23 <target name="samples" depends="build"> | 23 <target name="samples" depends="build-cmdline"> |
24 | 24 |
25 <echo message="History of a specific file(s)"/> | 25 <echo message="History of a specific file(s)"/> |
26 <java classpath="jhg.jar" classname="org.tmatesoft.hg.console.Log"> | 26 <java classpath="jhg.jar;jhg-cl.jar" classname="org.tmatesoft.hg.console.Log"> |
27 <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"/> |
28 </java> | 28 </java> |
29 | 29 |
30 <echo message="Whole repo log"/> | 30 <echo message="Whole repo log"/> |
31 <java classpath="jhg.jar" classname="org.tmatesoft.hg.console.Log"/> | 31 <java classpath="jhg.jar;jhg-cl.jar" classname="org.tmatesoft.hg.console.Log"/> |
32 | 32 |
33 <echo message="Content of a file"/> | 33 <echo message="Content of a file"/> |
34 <java classpath="jhg.jar" classname="org.tmatesoft.hg.console.Cat"> | 34 <java classpath="jhg.jar;jhg-cl.jar" classname="org.tmatesoft.hg.console.Cat"> |
35 <arg line="src/com/tmate/hgkit/ll/Revlog.java"/> | 35 <arg line="src/com/tmate/hgkit/ll/Revlog.java"/> |
36 </java> | 36 </java> |
37 | 37 |
38 </target> | 38 </target> |
39 | 39 |
40 <target name="tests" depends="build, build-tests"> | 40 <target name="tests" depends="build-tests"> |
41 <java classpath="jhg.jar;jhg-tests.jar" classname="org.tmatesoft.hg.test.TestHistory"/> | 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"/> | 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"/> | 43 <java classpath="jhg.jar;jhg-tests.jar" classname="org.tmatesoft.hg.test.TestStatus"/> |
44 </target> | 44 </target> |
45 | 45 |
47 <mkdir dir="bin"/> | 47 <mkdir dir="bin"/> |
48 <javac srcdir="src" destdir="bin"/> | 48 <javac srcdir="src" destdir="bin"/> |
49 <jar destfile="jhg.jar"> | 49 <jar destfile="jhg.jar"> |
50 <fileset dir="bin/"> | 50 <fileset dir="bin/"> |
51 <include name="org/tmatesoft/hg/core/**" /> | 51 <include name="org/tmatesoft/hg/core/**" /> |
52 <include name="org/tmatesoft/hg/console/**" /> | |
53 <include name="org/tmatesoft/hg/util/**" /> | 52 <include name="org/tmatesoft/hg/util/**" /> |
54 <include name="org/tmatesoft/hg/repo/**" /> | 53 <include name="org/tmatesoft/hg/repo/**" /> |
55 <include name="org/tmatesoft/hg/internal/**" /> | 54 <include name="org/tmatesoft/hg/internal/**" /> |
56 <!-- --> | |
57 <include name="com/tmate/hgkit/fs/**" /> | |
58 <include name="com/tmate/hgkit/ll/**" /> | |
59 </fileset> | 55 </fileset> |
60 </jar> | 56 </jar> |
61 </target> | 57 </target> |
62 | 58 |
63 <target name="build-tests"> | 59 <target name="build-tests" depends="build"> |
64 <mkdir dir="bin"/> | 60 <mkdir dir="bin"/> |
65 <javac srcdir="test" destdir="bin"/> | 61 <javac srcdir="test" destdir="bin"/> |
66 <jar destfile="jhg-tests.jar" basedir="bin" includes="org/tmatesoft/hg/test/**/*"/> | 62 <jar destfile="jhg-tests.jar" basedir="bin" includes="org/tmatesoft/hg/test/**"/> |
67 </target> | 63 </target> |
68 | 64 |
69 <target name="build-cmdline"> | 65 <target name="build-cmdline" depends="build"> |
70 <mkdir dir="bin"/> | 66 <mkdir dir="bin"/> |
71 <javac srcdir="cmdline" destdir="bin"/> | 67 <javac srcdir="cmdline" destdir="bin"/> |
72 <jar destfile="jhg-cl.jar" basedir="bin" includes="org/tmatesoft/hg/console/**/*"/> | 68 <jar destfile="jhg-cl.jar" basedir="bin" includes="org/tmatesoft/hg/console/**"/> |
73 </target> | 69 </target> |
74 | 70 |
75 </project> | 71 </project> |