annotate build.xml @ 84:08754fce5778

updated design questions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 25 Jan 2011 22:53:28 +0100
parents ce6d23673f2d
children 40d04c4f771e
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
5abe5af181bd Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff changeset
23 <target name="samples" depends="build">
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)"/>
70
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
26 <java classpath="jhg.jar" classname="com.tmate.hgkit.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"/>
70
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
31 <java classpath="jhg.jar" classname="com.tmate.hgkit.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"/>
70
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
34 <java classpath="jhg.jar" classname="com.tmate.hgkit.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
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
40 <target name="tests" depends="build, 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/**" />
71
ce6d23673f2d Tests to run from build.xml
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 70
diff changeset
55 <!-- -->
ce6d23673f2d Tests to run from build.xml
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 70
diff changeset
56 <include name="com/tmate/hgkit/fs/**" />
ce6d23673f2d Tests to run from build.xml
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 70
diff changeset
57 <include name="com/tmate/hgkit/ll/**" />
70
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
58 </fileset>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
59 </jar>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
60 </target>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
61
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
62 <target name="build-tests">
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
63 <mkdir dir="bin"/>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
64 <javac srcdir="test" destdir="bin"/>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
65 <jar destfile="jhg-tests.jar" basedir="bin" includes="org/tmatesoft/hg/test/**/*"/>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
66 </target>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
67
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
68 <target name="build-cmdline">
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
69 <mkdir dir="bin"/>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
70 <javac srcdir="cmdline" destdir="bin"/>
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
71 <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
72 </target>
5abe5af181bd Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff changeset
73
5abe5af181bd Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff changeset
74 </project>