Mercurial > hg4j
comparison build.xml @ 174:b1de83ffa7f8
Build shall succeed with no precompiled classes, too
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 30 Mar 2011 02:43:15 +0200 |
parents | 1d0654be1466 |
children | 7653bdf82cf0 |
comparison
equal
deleted
inserted
replaced
173:4bf061a7c001 | 174:b1de83ffa7f8 |
---|---|
15 the terms of a license other than GNU General Public License | 15 the terms of a license other than GNU General Public License |
16 contact TMate Software at support@hg4j.com | 16 contact TMate Software at support@hg4j.com |
17 --> | 17 --> |
18 <project name="hg4j" default="samples"> | 18 <project name="hg4j" default="samples"> |
19 <description> | 19 <description> |
20 Build, test and showcase hg4j | 20 Build, test and showcase hg4j |
21 Targets: | 21 Targets: |
22 * build - compile and jar binary and source bundles | 22 * build - compile and jar binary and source bundles |
23 * tests - run tests with JUnit | 23 * tests - run tests with JUnit |
24 * samples - few command-line counterparts to demonstrate basic capabiliites | 24 * samples - few command-line counterparts to demonstrate basic capabiliites |
25 </description> | 25 </description> |
26 | 26 |
27 <property name="junit.jar" value="lib/junit-4.8.2.jar" /> | 27 <property name="junit.jar" value="lib/junit-4.8.2.jar" /> |
28 <property name="ver.qualifier" value="" /> | 28 <property name="ver.qualifier" value="" /> |
29 <property name="version.lib" value="0.1.0" /> | 29 <property name="version.lib" value="0.1.0" /> |
30 <property name="version.jar" value="${version.lib}${ver.qualifier}" /> | 30 <property name="version.jar" value="${version.lib}${ver.qualifier}" /> |
109 </jar> | 109 </jar> |
110 </target> | 110 </target> |
111 | 111 |
112 <target name="build-tests" depends="build-lib"> | 112 <target name="build-tests" depends="build-lib"> |
113 <mkdir dir="bin" /> | 113 <mkdir dir="bin" /> |
114 <javac srcdir="test" destdir="bin" /> | 114 <javac srcdir="test" destdir="bin"> |
115 <classpath> | |
116 <pathelement location="${hg4j.jar}"/> | |
117 <pathelement location="${junit.jar}"/> | |
118 </classpath> | |
119 </javac> | |
115 <jar destfile="${hg4j-tests.jar}"> | 120 <jar destfile="${hg4j-tests.jar}"> |
116 <fileset dir="bin" includes="org/tmatesoft/hg/test/**"/> | 121 <fileset dir="bin" includes="org/tmatesoft/hg/test/**"/> |
117 <fileset file="COPYING"/> | 122 <fileset file="COPYING"/> |
118 </jar> | 123 </jar> |
119 </target> | 124 </target> |
120 | 125 |
121 <target name="build-cmdline" depends="build-lib"> | 126 <target name="build-cmdline" depends="build-lib"> |
122 <mkdir dir="bin" /> | 127 <mkdir dir="bin" /> |
123 <javac srcdir="cmdline" destdir="bin" /> | 128 <javac srcdir="cmdline" destdir="bin"/> |
124 <jar destfile="${hg4j-console.jar}"> | 129 <jar destfile="${hg4j-console.jar}"> |
125 <fileset dir="bin/" includes="org/tmatesoft/hg/console/**"/> | 130 <fileset dir="bin/" includes="org/tmatesoft/hg/console/**"/> |
126 <fileset file="COPYING"/> | 131 <fileset file="COPYING"/> |
127 </jar> | 132 </jar> |
128 </target> | 133 </target> |