annotate build.xml @ 673:545b1d4cc11d

Refactor HgBundle.GroupElement (clear experimental mark), resolve few technical debt issues
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 12 Jul 2013 20:14:24 +0200
parents d25f0324a27a
children 9897cbfd2790
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 <!--
540
67d4b0f73984 Include commit tests into Ant's test suite
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 529
diff changeset
3 Copyright (c) 2010-2013 TMate Software Ltd
70
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">
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
19 <description>
174
b1de83ffa7f8 Build shall succeed with no precompiled classes, too
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 166
diff changeset
20 Build, test and showcase hg4j
165
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
21 Targets:
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
22 * build - compile and jar binary and source bundles
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
23 * tests - run tests with JUnit
187
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
24 * samples - few command-line counterparts to demonstrate basic capabiliites
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
25 * rebuild - clean build
174
b1de83ffa7f8 Build shall succeed with no precompiled classes, too
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 166
diff changeset
26 </description>
6
5abe5af181bd Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff changeset
27
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
28 <property name="junit.jar" value="lib/junit-4.8.2.jar" />
166
1d0654be1466 First GA version is 0.1.0
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 165
diff changeset
29 <property name="ver.qualifier" value="" />
643
a8ce405da1f5 v1.2 line of dev: update versions, use patch merge code by default
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 635
diff changeset
30 <property name="version.lib" value="1.2" />
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
31 <property name="version.jar" value="${version.lib}${ver.qualifier}" />
187
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
32 <property name="compile-with-debug" value="yes"/>
6
5abe5af181bd Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff changeset
33
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
34 <property name="hg4j.jar" value="hg4j_${version.jar}.jar" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
35 <property name="hg4j-tests.jar" value="hg4j-tests_${version.jar}.jar" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
36 <property name="hg4j-console.jar" value="hg4j-console_${version.jar}.jar" />
165
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
37 <property name="hg4j-src.jar" value="hg4j-src_${version.jar}.jar" />
187
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
38
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
39
175
7653bdf82cf0 Nice ant --projecthelp -v output
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 174
diff changeset
40 <target name="samples" depends="build-cmdline" description="Run sample command-line tools">
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
41 <path id="path.cmdline" path="${hg4j.jar};${hg4j-console.jar}" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
42
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
43 <echo message="History of a specific file(s)" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
44 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Log">
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
45 <arg line="design.txt .classpath src/org/tmatesoft/hg/core/HgRepoFacade.java" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
46 </java>
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
47
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
48 <echo message="${line.separator}>>>Latest commit" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
49 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Log">
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
50 <arg line="--debug --limit 1" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
51 </java>
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
52
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
53 <echo message="${line.separator}>>>Content of a file" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
54 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Cat">
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
55 <arg line="src/org/tmatesoft/hg/core/HgRepoFacade.java --rev 1" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
56 </java>
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
57
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
58 <echo message="${line.separator}>>>Status between two revisions" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
59 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Status">
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
60 <arg line="--rev 140 --rev 142" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
61 </java>
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
62
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
63 <echo message="${line.separator}>>>Status, working copy, all" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
64 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Status">
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
65 <arg line="-A" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
66 </java>
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
67
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
68 <echo message="${line.separator}>>>Manifest" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
69 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Manifest">
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
70 <arg line="--debug" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
71 </java>
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
72 </target>
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
73
175
7653bdf82cf0 Nice ant --projecthelp -v output
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 174
diff changeset
74 <target name="tests" depends="build-tests" description="Launch tests with JUnit">
147
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
75 <property name="test-repos-root" value="${java.io.tmpdir}/hg4j-tests/"/>
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
76 <delete dir="${test-repos-root}" quiet="yes"/>
155
a4ec5e087017 Dedicated location for various test data
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 147
diff changeset
77 <unjar src="test-data/test-repos.jar" dest="${test-repos-root}"/>
103
0b2dcca7de9f ErrorCollector in tests to grab multiple errors
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 102
diff changeset
78 <junit>
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
79 <classpath path="${hg4j.jar};${hg4j-tests.jar};${junit.jar}" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
80 <formatter type="xml" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
81 <formatter type="plain" usefile="no" />
147
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
82 <sysproperty key="hg4j.tests.repos" value="${test-repos-root}"/>
204
883f1efbcf27 Add clone,incoming and outging tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 187
diff changeset
83 <sysproperty key="hg4j.tests.remote" value="http://hg.serpentine.com/tutorial/hello"/>
298
aac0c3fab6ce Updated jar with test repositories
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 286
diff changeset
84 <test name="org.tmatesoft.hg.test.TestIntMap" />
311
b9592e21176a Tests for array sort and reverse index building helper
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 309
diff changeset
85 <test name="org.tmatesoft.hg.test.TestAuxUtilities" />
497
02140be396d5 Issue 38. Towards gentle handling of config files - parse them and keep every possible user change
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 479
diff changeset
86 <test name="org.tmatesoft.hg.test.TestConfigFileParser" />
665
dde18bc7053b Test Copy-on-Write transactions
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 663
diff changeset
87 <test name="org.tmatesoft.hg.test.TestTransaction" />
635
4ec2d44e2bf3 Compound test scenario for checkout, add, remove, revert and commit
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 613
diff changeset
88 <test name="org.tmatesoft.hg.test.TestInflaterDataAccess" />
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
89 <test name="org.tmatesoft.hg.test.TestHistory" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
90 <test name="org.tmatesoft.hg.test.TestManifest" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
91 <test name="org.tmatesoft.hg.test.TestStatus" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
92 <test name="org.tmatesoft.hg.test.TestStorePath" />
355
f2c11fe7f3e9 Newline filter shall respect whole stream when deciding whether to process line terminators, hence added stream preview functionality
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 325
diff changeset
93 <test name="org.tmatesoft.hg.test.TestNewlineFilter" />
271
c8baeb813d74 Include tests for hgignore into the suite
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 204
diff changeset
94 <test name="org.tmatesoft.hg.test.TestIgnore" />
609
e4a71afd3c71 Test TODOs: test for ConfigFile (covering %include and %unset directives)
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 585
diff changeset
95 <test name="org.tmatesoft.hg.test.TestConfigFiles" />
286
954763c82cc3 Few tests for working copy information (branch, parents)
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 272
diff changeset
96 <test name="org.tmatesoft.hg.test.TestDirstate" />
309
962f78aac342 Branch with few children forked shall not ignore other children once one of them is processed
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 298
diff changeset
97 <test name="org.tmatesoft.hg.test.TestBranches" />
157
d5268ca7715b Merged branch wrap-data-access into default for resource-friendly data access. Updated API to promote that friendliness to clients (channels, not byte[]). More exceptions
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 155
diff changeset
98 <test name="org.tmatesoft.hg.test.TestByteChannel" />
442
6865eb742883 Tests for subrepo API, refactor status tests for reuse, better subrepos API
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 413
diff changeset
99 <test name="org.tmatesoft.hg.test.TestSubrepo" />
668
d25f0324a27a Delete bundle with push/pull changes once command completes successfully. Test for bundle generator
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 665
diff changeset
100 <test name="org.tmatesoft.hg.test.TestBundle" />
204
883f1efbcf27 Add clone,incoming and outging tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 187
diff changeset
101 <test name="org.tmatesoft.hg.test.TestClone" />
883f1efbcf27 Add clone,incoming and outging tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 187
diff changeset
102 <test name="org.tmatesoft.hg.test.TestIncoming" />
883f1efbcf27 Add clone,incoming and outging tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 187
diff changeset
103 <test name="org.tmatesoft.hg.test.TestOutgoing" />
474
09f2d38ecf26 Tests for phases support
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 470
diff changeset
104 <test name="org.tmatesoft.hg.test.TestPhases" />
477
9c9d09111aee Tests for file flags(exec, link, regular)
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 474
diff changeset
105 <test name="org.tmatesoft.hg.test.TestMqExtension" />
9c9d09111aee Tests for file flags(exec, link, regular)
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 474
diff changeset
106 <test name="org.tmatesoft.hg.test.TestFileFlags" />
479
59b7c817bc4d Methods from Main graduated as tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 477
diff changeset
107 <test name="org.tmatesoft.hg.test.TestCatCommand" />
526
2f9ed6bcefa2 Initial support for Revert command with accompanying minor refactoring
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 497
diff changeset
108 <test name="org.tmatesoft.hg.test.TestRevert" />
2f9ed6bcefa2 Initial support for Revert command with accompanying minor refactoring
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 497
diff changeset
109 <test name="org.tmatesoft.hg.test.TestCheckout" />
529
95bdcf75e71e Command to schedule addition/removal of repository files
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 526
diff changeset
110 <test name="org.tmatesoft.hg.test.TestAddRemove" />
540
67d4b0f73984 Include commit tests into Ant's test suite
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 529
diff changeset
111 <test name="org.tmatesoft.hg.test.TestCommit" />
546
cd78e8b9d7bc File annotate test. Refactored FileAnnotation as standalone class, introduced LineInspector to make line offset calc code shared
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 540
diff changeset
112 <test name="org.tmatesoft.hg.test.TestBlame" />
551
4ea0351ca878 Better (precise) name for diff facility, tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 546
diff changeset
113 <test name="org.tmatesoft.hg.test.TestDiffHelper" />
635
4ec2d44e2bf3 Compound test scenario for checkout, add, remove, revert and commit
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 613
diff changeset
114 <test name="org.tmatesoft.hg.test.TestRepositoryLock" />
648
690e71d29bf6 Introduced RevisionSet to ease update of phase roots on push
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 643
diff changeset
115 <test name="org.tmatesoft.hg.test.TestRevisionSet" />
653
629a7370554c Tests for recent changes in HgParentChildMap and RepositoryComparator (outgoing to respect drafts and Issue 47)
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 651
diff changeset
116 <test name="org.tmatesoft.hg.test.TestRevisionMaps" />
651
6e98d34eaca8 Push: tests (push to empty, push changes, respect secret)
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 648
diff changeset
117 <test name="org.tmatesoft.hg.test.TestPush" />
663
46b56864b483 Pull: phase2 - update phases from remote, fncache with added files. Tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 653
diff changeset
118 <test name="org.tmatesoft.hg.test.TestPull" />
635
4ec2d44e2bf3 Compound test scenario for checkout, add, remove, revert and commit
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 613
diff changeset
119 <test name="org.tmatesoft.hg.test.ComplexTest" />
101
777ab7034c1b Switch to JUnit for tests
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 86
diff changeset
120 </junit>
70
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
121 </target>
6
5abe5af181bd Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff changeset
122
165
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
123 <!-- -->
175
7653bdf82cf0 Nice ant --projecthelp -v output
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 174
diff changeset
124 <target name="build" depends="build-lib, build-cmdline, build-tests" description="Compile and bundle all jars">
165
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
125 <jar destfile="${hg4j-src.jar}">
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
126 <fileset dir="src/" includes="org/tmatesoft/hg/**" />
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
127 <fileset dir="test/" includes="org/tmatesoft/hg/**" />
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
128 <fileset dir="cmdline/" includes="org/tmatesoft/hg/**" />
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
129 <fileset file="COPYING"/>
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
130 </jar>
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
131 </target>
187
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
132
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
133 <target name="rebuild" depends="cleanup, build" description="Clean and build again"/>
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
134
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
135 <target name="cleanup">
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
136 <delete dir="bin/" description="Compiled classes"/>
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
137 <delete description="Jars">
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
138 <fileset dir="." includes="${hg4j-console.jar}, ${hg4j-src.jar}, ${hg4j-tests.jar}, ${hg4j.jar}"/>
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
139 </delete>
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
140 <delete description="Tests artifacts">
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
141 <fileset dir="." includes="TEST-*.xml"/>
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
142 </delete>
b8534ac8ac67 Added cleanup and rebuild target; option to include debug information
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 175
diff changeset
143 </target>
165
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
144
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
145 <target name="build-lib">
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
146 <mkdir dir="bin" />
635
4ec2d44e2bf3 Compound test scenario for checkout, add, remove, revert and commit
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 613
diff changeset
147 <javac srcdir="src" destdir="bin" debug="${compile-with-debug}" includeantruntime="no" source="1.5" encoding="UTF-8"/>
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
148 <jar destfile="${hg4j.jar}">
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
149 <fileset dir="bin/">
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
150 <include name="org/tmatesoft/hg/core/**" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
151 <include name="org/tmatesoft/hg/util/**" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
152 <include name="org/tmatesoft/hg/repo/**" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
153 <include name="org/tmatesoft/hg/internal/**" />
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
154 </fileset>
147
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
155 <fileset file="COPYING"/>
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
156 </jar>
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
157 </target>
70
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
158
165
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
159 <target name="build-tests" depends="build-lib">
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
160 <mkdir dir="bin" />
635
4ec2d44e2bf3 Compound test scenario for checkout, add, remove, revert and commit
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 613
diff changeset
161 <javac srcdir="test" destdir="bin" debug="${compile-with-debug}" includeantruntime="no" source="1.5" encoding="UTF-8">
174
b1de83ffa7f8 Build shall succeed with no precompiled classes, too
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 166
diff changeset
162 <classpath>
b1de83ffa7f8 Build shall succeed with no precompiled classes, too
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 166
diff changeset
163 <pathelement location="${hg4j.jar}"/>
b1de83ffa7f8 Build shall succeed with no precompiled classes, too
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 166
diff changeset
164 <pathelement location="${junit.jar}"/>
b1de83ffa7f8 Build shall succeed with no precompiled classes, too
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 166
diff changeset
165 </classpath>
b1de83ffa7f8 Build shall succeed with no precompiled classes, too
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 166
diff changeset
166 </javac>
147
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
167 <jar destfile="${hg4j-tests.jar}">
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
168 <fileset dir="bin" includes="org/tmatesoft/hg/test/**"/>
468
3ca4ae7bdd38 Clean experimental marks and deprecation code. Update version number to release
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 442
diff changeset
169 <fileset dir="bin" includes="org/tmatesoft/hg/tools/**"/>
147
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
170 <fileset file="COPYING"/>
396
0ae53c32ecef Straighten out exceptions thrown when file access failed - three is too much
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 366
diff changeset
171 <!-- XXX perhaps, shall include test-data as well? -->
147
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
172 </jar>
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
173 </target>
70
993f6f8e1314 Test for log command
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 9
diff changeset
174
165
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
175 <target name="build-cmdline" depends="build-lib">
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
176 <mkdir dir="bin" />
635
4ec2d44e2bf3 Compound test scenario for checkout, add, remove, revert and commit
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 613
diff changeset
177 <javac srcdir="cmdline" destdir="bin" debug="${compile-with-debug}" includeantruntime="no" source="1.5" encoding="UTF-8">
325
f05c8b1f08c4 Explicit dependency for cmdline build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 311
diff changeset
178 <classpath>
f05c8b1f08c4 Explicit dependency for cmdline build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 311
diff changeset
179 <pathelement location="${hg4j.jar}"/>
f05c8b1f08c4 Explicit dependency for cmdline build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 311
diff changeset
180 <pathelement location="${junit.jar}"/>
f05c8b1f08c4 Explicit dependency for cmdline build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 311
diff changeset
181 </classpath>
f05c8b1f08c4 Explicit dependency for cmdline build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 311
diff changeset
182 </javac>
147
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
183 <jar destfile="${hg4j-console.jar}">
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
184 <fileset dir="bin/" includes="org/tmatesoft/hg/console/**"/>
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
185 <fileset file="COPYING"/>
a05145db4d0c Bring test repos along with us to recreate testbench
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 144
diff changeset
186 </jar>
144
44185c4a850c Samples updated
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 105
diff changeset
187 </target>
165
b45e612ea750 Build jar with sources along with main jars
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents: 157
diff changeset
188
6
5abe5af181bd Ant script to build commands and run sample
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff changeset
189 </project>