summaryrefslogtreecommitdiff
path: root/dev-java/cpptasks/files/cpptasks-1.0_beta5-test-classpath.patch
blob: 02754ce7f1ed104c6885ca4f421cca8245a2b02a (plain)
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
31
32
33
From 732e296e780633e3dce1bace28a4abae04f506c7 Mon Sep 17 00:00:00 2001
From: Yuan Liao <liaoyuan@gmail.com>
Date: Sat, 15 Jan 2022 10:58:28 -0800
Subject: [PATCH] Prevent test classpath from being overwritten by
 java-ant-2.eclass

Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
---
 build.xml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/build.xml b/build.xml
index ed3a0f7..24a3114 100644
--- a/build.xml
+++ b/build.xml
@@ -176,8 +176,12 @@
            deprecation="false"
            target="${javac.target}"
            source="${javac.source}"
-           optimize="false"
-           classpath="${build.lib}/${name}.jar;${java.class.path}"/>
+           optimize="false">
+        <classpath>
+            <pathelement location="${build.lib}/${name}.jar" />
+            <pathelement location="${java.class.path}" />
+        </classpath>
+    </javac>
     <jar jarfile="${tests.build.lib}/${name}_test.jar">
             <fileset dir="." includes="NOTICE LICENSE"/>
             <fileset dir="${tests.build.classes}"/>
-- 
2.34.1