Mercurial > jhg
annotate build.xml @ 104:54562de502f7
Preliminary tags implementation
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 28 Jan 2011 17:51:54 +0100 |
parents | 0b2dcca7de9f |
children | 0617dd31477f |
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 |
102
a3a2e5deb320
Updated contact address to support@hg4j.com
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
101
diff
changeset
|
16 contact TMate Software at support@hg4j.com |
70
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
17 --> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
18 <project name="hg4j" default="samples"> |
6
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
19 <description> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
20 Build, test and showcase hg4j |
6
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
21 </description> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
22 |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
23 <property name="junit.jar" value="lib/junit-4.8.2.jar"/> |
6
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
24 |
86
ee4458416579
Build command line tools into separate jar
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
81
diff
changeset
|
25 <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
|
26 |
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 <echo message="History of a specific file(s)"/> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
28 <java classpath="hg4j.jar;hg4j-console.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
|
29 <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
|
30 </java> |
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
31 |
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
32 <echo message="Whole repo log"/> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
33 <java classpath="hg4j.jar;hg4j-console.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
|
34 |
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
35 <echo message="Content of a file"/> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
36 <java classpath="hg4j.jar;hg4j-console.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
|
37 <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
|
38 </java> |
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
39 |
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
40 </target> |
70
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
41 |
86
ee4458416579
Build command line tools into separate jar
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
81
diff
changeset
|
42 <target name="tests" depends="build-tests"> |
103
0b2dcca7de9f
ErrorCollector in tests to grab multiple errors
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
102
diff
changeset
|
43 <junit> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
44 <classpath path="hg4j.jar;hg4j-tests.jar;${junit.jar}"/> |
103
0b2dcca7de9f
ErrorCollector in tests to grab multiple errors
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
102
diff
changeset
|
45 <formatter type="xml"/> |
0b2dcca7de9f
ErrorCollector in tests to grab multiple errors
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
102
diff
changeset
|
46 <formatter type="plain" usefile="no"/> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
47 <test name="org.tmatesoft.hg.test.TestHistory"/> |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
48 <test name="org.tmatesoft.hg.test.TestManifest"/> |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
49 <test name="org.tmatesoft.hg.test.TestStatus"/> |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
50 <test name="org.tmatesoft.hg.test.TestStorePath"/> |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
51 </junit> |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
52 <!-- |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
53 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestHistory"/> |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
54 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestManifest"/> |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
55 <java classpath="hg4j.jar;hg4j-tests.jar" classname="org.tmatesoft.hg.test.TestStatus"/> |
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
56 --> |
70
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
57 </target> |
6
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
58 |
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
59 <target name="build"> |
7
286d221f6c28
Explicit folder creation in the build.xml
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
6
diff
changeset
|
60 <mkdir dir="bin"/> |
6
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
61 <javac srcdir="src" destdir="bin"/> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
62 <jar destfile="hg4j.jar"> |
70
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
63 <fileset dir="bin/"> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
64 <include name="org/tmatesoft/hg/core/**" /> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
65 <include name="org/tmatesoft/hg/util/**" /> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
66 <include name="org/tmatesoft/hg/repo/**" /> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
67 <include name="org/tmatesoft/hg/internal/**" /> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
68 </fileset> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
69 </jar> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
70 </target> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
71 |
86
ee4458416579
Build command line tools into separate jar
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
81
diff
changeset
|
72 <target name="build-tests" depends="build"> |
70
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
73 <mkdir dir="bin"/> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
74 <javac srcdir="test" destdir="bin"/> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
75 <jar destfile="hg4j-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
|
76 </target> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
77 |
86
ee4458416579
Build command line tools into separate jar
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
81
diff
changeset
|
78 <target name="build-cmdline" depends="build"> |
70
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
79 <mkdir dir="bin"/> |
993f6f8e1314
Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
9
diff
changeset
|
80 <javac srcdir="cmdline" destdir="bin"/> |
101
777ab7034c1b
Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
86
diff
changeset
|
81 <jar destfile="hg4j-console.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
|
82 </target> |
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
83 |
5abe5af181bd
Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
84 </project> |