Mercurial > jhg
comparison build.xml @ 175:7653bdf82cf0
Nice ant --projecthelp -v output
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 30 Mar 2011 02:55:48 +0200 |
parents | b1de83ffa7f8 |
children | b8534ac8ac67 |
comparison
equal
deleted
inserted
replaced
174:b1de83ffa7f8 | 175:7653bdf82cf0 |
---|---|
32 <property name="hg4j.jar" value="hg4j_${version.jar}.jar" /> | 32 <property name="hg4j.jar" value="hg4j_${version.jar}.jar" /> |
33 <property name="hg4j-tests.jar" value="hg4j-tests_${version.jar}.jar" /> | 33 <property name="hg4j-tests.jar" value="hg4j-tests_${version.jar}.jar" /> |
34 <property name="hg4j-console.jar" value="hg4j-console_${version.jar}.jar" /> | 34 <property name="hg4j-console.jar" value="hg4j-console_${version.jar}.jar" /> |
35 <property name="hg4j-src.jar" value="hg4j-src_${version.jar}.jar" /> | 35 <property name="hg4j-src.jar" value="hg4j-src_${version.jar}.jar" /> |
36 | 36 |
37 <target name="samples" depends="build-cmdline"> | 37 <target name="samples" depends="build-cmdline" description="Run sample command-line tools"> |
38 <path id="path.cmdline" path="${hg4j.jar};${hg4j-console.jar}" /> | 38 <path id="path.cmdline" path="${hg4j.jar};${hg4j-console.jar}" /> |
39 | 39 |
40 <echo message="History of a specific file(s)" /> | 40 <echo message="History of a specific file(s)" /> |
41 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Log"> | 41 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Log"> |
42 <arg line="design.txt .classpath src/org/tmatesoft/hg/core/HgRepoFacade.java" /> | 42 <arg line="design.txt .classpath src/org/tmatesoft/hg/core/HgRepoFacade.java" /> |
66 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Manifest"> | 66 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Manifest"> |
67 <arg line="--debug" /> | 67 <arg line="--debug" /> |
68 </java> | 68 </java> |
69 </target> | 69 </target> |
70 | 70 |
71 <target name="tests" depends="build-tests"> | 71 <target name="tests" depends="build-tests" description="Launch tests with JUnit"> |
72 <property name="test-repos-root" value="${java.io.tmpdir}/hg4j-tests/"/> | 72 <property name="test-repos-root" value="${java.io.tmpdir}/hg4j-tests/"/> |
73 <delete dir="${test-repos-root}" quiet="yes"/> | 73 <delete dir="${test-repos-root}" quiet="yes"/> |
74 <unjar src="test-data/test-repos.jar" dest="${test-repos-root}"/> | 74 <unjar src="test-data/test-repos.jar" dest="${test-repos-root}"/> |
75 <junit> | 75 <junit> |
76 <classpath path="${hg4j.jar};${hg4j-tests.jar};${junit.jar}" /> | 76 <classpath path="${hg4j.jar};${hg4j-tests.jar};${junit.jar}" /> |
84 <test name="org.tmatesoft.hg.test.TestByteChannel" /> | 84 <test name="org.tmatesoft.hg.test.TestByteChannel" /> |
85 </junit> | 85 </junit> |
86 </target> | 86 </target> |
87 | 87 |
88 <!-- --> | 88 <!-- --> |
89 <target name="build" depends="build-lib, build-cmdline, build-tests"> | 89 <target name="build" depends="build-lib, build-cmdline, build-tests" description="Compile and bundle all jars"> |
90 <jar destfile="${hg4j-src.jar}"> | 90 <jar destfile="${hg4j-src.jar}"> |
91 <fileset dir="src/" includes="org/tmatesoft/hg/**" /> | 91 <fileset dir="src/" includes="org/tmatesoft/hg/**" /> |
92 <fileset dir="test/" includes="org/tmatesoft/hg/**" /> | 92 <fileset dir="test/" includes="org/tmatesoft/hg/**" /> |
93 <fileset dir="cmdline/" includes="org/tmatesoft/hg/**" /> | 93 <fileset dir="cmdline/" includes="org/tmatesoft/hg/**" /> |
94 <fileset file="COPYING"/> | 94 <fileset file="COPYING"/> |