Mercurial > hg4j
comparison build.xml @ 105:0617dd31477f
Add version identifier to jar name.
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Sat, 29 Jan 2011 01:57:43 +0100 |
| parents | 0b2dcca7de9f |
| children | 44185c4a850c |
comparison
equal
deleted
inserted
replaced
| 104:54562de502f7 | 105:0617dd31477f |
|---|---|
| 19 <description> | 19 <description> |
| 20 Build, test and showcase hg4j | 20 Build, test and showcase hg4j |
| 21 </description> | 21 </description> |
| 22 | 22 |
| 23 <property name="junit.jar" value="lib/junit-4.8.2.jar"/> | 23 <property name="junit.jar" value="lib/junit-4.8.2.jar"/> |
| 24 <property name="ver.qualifier" value=".rc1"/> | |
| 25 <property name="version.lib" value="0.0.9"/> | |
| 26 <property name="version.jar" value="${version.lib}${ver.qualifier}"/> | |
| 27 | |
| 28 <property name="hg4j.jar" value="hg4j_${version.jar}.jar"/> | |
| 29 <property name="hg4j-tests.jar" value="hg4j-tests_${version.jar}.jar"/> | |
| 30 <property name="hg4j-console.jar" value="hg4j-console_${version.jar}.jar"/> | |
| 24 | 31 |
| 25 <target name="samples" depends="build-cmdline"> | 32 <target name="samples" depends="build-cmdline"> |
| 33 <path id="path.cmdline" path="${hg4j.jar};${hg4j-console.jar}"/> | |
| 26 | 34 |
| 27 <echo message="History of a specific file(s)"/> | 35 <echo message="History of a specific file(s)"/> |
| 28 <java classpath="hg4j.jar;hg4j-console.jar" classname="org.tmatesoft.hg.console.Log"> | 36 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Log"> |
| 29 <arg line="design.txt .classpath src/com/tmate/hgkit/ll/LocalHgRepo.java"/> | 37 <arg line="design.txt .classpath src/com/tmate/hgkit/ll/LocalHgRepo.java"/> |
| 30 </java> | 38 </java> |
| 31 | 39 |
| 32 <echo message="Whole repo log"/> | 40 <echo message="Whole repo log"/> |
| 33 <java classpath="hg4j.jar;hg4j-console.jar" classname="org.tmatesoft.hg.console.Log"/> | 41 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Log"/> |
| 34 | 42 |
| 35 <echo message="Content of a file"/> | 43 <echo message="Content of a file"/> |
| 36 <java classpath="hg4j.jar;hg4j-console.jar" classname="org.tmatesoft.hg.console.Cat"> | 44 <java classpathref="path.cmdline" classname="org.tmatesoft.hg.console.Cat"> |
| 37 <arg line="src/com/tmate/hgkit/ll/Revlog.java"/> | 45 <arg line="src/com/tmate/hgkit/ll/Revlog.java"/> |
| 38 </java> | 46 </java> |
| 39 | 47 |
| 40 </target> | 48 </target> |
| 41 | 49 |
| 42 <target name="tests" depends="build-tests"> | 50 <target name="tests" depends="build-tests"> |
| 43 <junit> | 51 <junit> |
| 44 <classpath path="hg4j.jar;hg4j-tests.jar;${junit.jar}"/> | 52 <classpath path="${hg4j.jar};${hg4j-tests.jar};${junit.jar}"/> |
| 45 <formatter type="xml"/> | 53 <formatter type="xml"/> |
| 46 <formatter type="plain" usefile="no"/> | 54 <formatter type="plain" usefile="no"/> |
| 47 <test name="org.tmatesoft.hg.test.TestHistory"/> | 55 <test name="org.tmatesoft.hg.test.TestHistory"/> |
| 48 <test name="org.tmatesoft.hg.test.TestManifest"/> | 56 <test name="org.tmatesoft.hg.test.TestManifest"/> |
| 49 <test name="org.tmatesoft.hg.test.TestStatus"/> | 57 <test name="org.tmatesoft.hg.test.TestStatus"/> |
| 57 </target> | 65 </target> |
| 58 | 66 |
| 59 <target name="build"> | 67 <target name="build"> |
| 60 <mkdir dir="bin"/> | 68 <mkdir dir="bin"/> |
| 61 <javac srcdir="src" destdir="bin"/> | 69 <javac srcdir="src" destdir="bin"/> |
| 62 <jar destfile="hg4j.jar"> | 70 <jar destfile="${hg4j.jar}"> |
| 63 <fileset dir="bin/"> | 71 <fileset dir="bin/"> |
| 64 <include name="org/tmatesoft/hg/core/**" /> | 72 <include name="org/tmatesoft/hg/core/**" /> |
| 65 <include name="org/tmatesoft/hg/util/**" /> | 73 <include name="org/tmatesoft/hg/util/**" /> |
| 66 <include name="org/tmatesoft/hg/repo/**" /> | 74 <include name="org/tmatesoft/hg/repo/**" /> |
| 67 <include name="org/tmatesoft/hg/internal/**" /> | 75 <include name="org/tmatesoft/hg/internal/**" /> |
| 70 </target> | 78 </target> |
| 71 | 79 |
| 72 <target name="build-tests" depends="build"> | 80 <target name="build-tests" depends="build"> |
| 73 <mkdir dir="bin"/> | 81 <mkdir dir="bin"/> |
| 74 <javac srcdir="test" destdir="bin"/> | 82 <javac srcdir="test" destdir="bin"/> |
| 75 <jar destfile="hg4j-tests.jar" basedir="bin" includes="org/tmatesoft/hg/test/**"/> | 83 <jar destfile="${hg4j-tests.jar}" basedir="bin" includes="org/tmatesoft/hg/test/**"/> |
| 76 </target> | 84 </target> |
| 77 | 85 |
| 78 <target name="build-cmdline" depends="build"> | 86 <target name="build-cmdline" depends="build"> |
| 79 <mkdir dir="bin"/> | 87 <mkdir dir="bin"/> |
| 80 <javac srcdir="cmdline" destdir="bin"/> | 88 <javac srcdir="cmdline" destdir="bin"/> |
| 81 <jar destfile="hg4j-console.jar" basedir="bin" includes="org/tmatesoft/hg/console/**"/> | 89 <jar destfile="${hg4j-console.jar}" basedir="bin" includes="org/tmatesoft/hg/console/**"/> |
| 82 </target> | 90 </target> |
| 83 | 91 |
| 84 </project> | 92 </project> |
