annotate build.xml @ 97:ee2c750b036d

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