File: set_antruntime.patch

package info (click to toggle)
cmdreader 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 280 kB
  • sloc: java: 1,078; xml: 188; makefile: 9
file content (30 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Index: cmdreader/build.xml
===================================================================
--- cmdreader.orig/build.xml
+++ cmdreader/build.xml
@@ -105,7 +105,7 @@ and finally call CmdReader.of(ThatClass.
 	
 	<target name="compile" depends="ensureBuildDeps" description="Compiles program code">
 		<mkdir dir="build/prog" />
-		<javac destdir="build/prog" target="1.5" source="1.5">
+		<javac destdir="build/prog" target="1.5" source="1.5" includeantruntime="false">
 			<src path="src" />
 			<classpath refid="build.path" />
 		</javac>
@@ -113,7 +113,7 @@ and finally call CmdReader.of(ThatClass.
 	
 	<target name="compileTests" depends="compile, ensureTestDeps" description="Compiles test code">
         <mkdir dir="build/tests" />
-		<javac destdir="build/tests" source="1.5" target="1.5">
+		<javac destdir="build/tests" source="1.5" target="1.5" includeantruntime="false">
 			<src path="test" />
 			<classpath refid="test.path" />
 			<classpath>
@@ -150,6 +150,7 @@ and finally call CmdReader.of(ThatClass.
 			<classpath>
 				<pathelement path="build/prog" />
 				<pathelement path="build/tests" />
+                <pathelement location="/usr/share/java/hamcrest-core.jar" />
 			</classpath>
 			<batchtest>
 				<fileset dir="test">