diff 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
line wrap: on
line diff
--- a/build.xml	Tue Mar 29 02:20:02 2011 +0200
+++ b/build.xml	Wed Mar 30 02:43:15 2011 +0200
@@ -17,12 +17,12 @@
 -->
 <project name="hg4j" default="samples">
 	<description>
-        Build, test and showcase hg4j
+		Build, test and showcase hg4j
 		Targets:
 		  * build - compile and jar binary and source bundles
 		  * tests - run tests with JUnit
 		  * samples - few command-line counterparts to demonstrate basic capabiliites 
-    </description>
+	</description>
 
 	<property name="junit.jar" value="lib/junit-4.8.2.jar" />
 	<property name="ver.qualifier" value="" />
@@ -111,7 +111,12 @@
 
 	<target name="build-tests" depends="build-lib">
 		<mkdir dir="bin" />
-		<javac srcdir="test" destdir="bin" />
+		<javac srcdir="test" destdir="bin">
+			<classpath>
+				<pathelement location="${hg4j.jar}"/>
+				<pathelement location="${junit.jar}"/>
+			</classpath>
+		</javac>
 		<jar destfile="${hg4j-tests.jar}">
 			<fileset dir="bin" includes="org/tmatesoft/hg/test/**"/>
 			<fileset file="COPYING"/>
@@ -120,7 +125,7 @@
 
 	<target name="build-cmdline" depends="build-lib">
 		<mkdir dir="bin" />
-		<javac srcdir="cmdline" destdir="bin" />
+		<javac srcdir="cmdline" destdir="bin"/>
 		<jar destfile="${hg4j-console.jar}">
 			<fileset dir="bin/" includes="org/tmatesoft/hg/console/**"/>
 			<fileset file="COPYING"/>