summaryrefslogtreecommitdiff
path: root/dev-java/lz4-java/files/lz4-java-1.8.0-skip-ivy.patch
blob: 26c09e147072cb56a720179139e89031aa9c0e0f (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
From 95ae85542f39cecd1af6a3e661ad6120195d2304 Mon Sep 17 00:00:00 2001
From: Yuan Liao <liaoyuan@gmail.com>
Date: Mon, 20 Dec 2021 09:57:31 -0800
Subject: [PATCH] build.xml: Skip Ivy logic and use Gentoo classpath

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

diff --git a/build.xml b/build.xml
index b7940ab..ff321c6 100644
--- a/build.xml
+++ b/build.xml
@@ -20,6 +20,8 @@
     xmlns:junit4="antlib:com.carrotsearch.junit4"
     xmlns:mvn="antlib:org.apache.maven.artifact.ant">
 
+  <import file="gentoo-classpath.xml" />
+
   <property name="src" location="src"/>
   <property name="build" location="build"/>
   <property name="dist"  location="dist"/>
@@ -81,8 +83,6 @@
   </target>
 
   <target name="install-cpptasks" unless="cpptasks.available">
-    <ivy:cachepath organisation="ant-contrib" module="cpptasks" revision="1.0b5"
-      inline="true" conf="default" transitive="true" pathid="cpptasks.classpath"/>
     <taskdef uri="antlib:net.sf.antcontrib.cpptasks" resource="net/sf/antcontrib/cpptasks/antlib.xml" classpathref="cpptasks.classpath"/>
     <property name="cpptasks.available" value="true"/>
   </target>
@@ -117,22 +117,14 @@
 
   <target name="init">
     <tstamp />
-    <ivy:resolve file="${ivy.xml.name}" conf="test" />
-    <ivy:retrieve />
   </target>
 
   <target name="install-junit4" depends="init" unless="junit4.available">
-    <taskdef uri="antlib:com.carrotsearch.junit4">
-      <classpath>
-        <fileset dir="${lib}" includes="*.jar" />
-      </classpath>
-    </taskdef>
+    <taskdef uri="antlib:com.carrotsearch.junit4" resource="com/carrotsearch/junit4/antlib.xml" classpath="${gentoo.classpath}"/>
     <property name="junit4.available" value="true" />
   </target>
 
   <target name="generate-sources" depends="init">
-    <ivy:cachepath organisation="org.mvel" module="mvel2" revision="2.3.2.Final"
-      inline="true" conf="default" transitive="true" pathid="mvel.classpath"/>
     <mkdir dir="${build}/java" />
     <java
       fork="true"
@@ -244,12 +236,12 @@
     <pathelement path="${build}/classes" />
     <pathelement path="${build}/unsafe-classes" />
     <pathelement path="${build}/generated-classes" />
-    <fileset dir="lib" includes="*.jar" />
+    <pathelement path="${gentoo.classpath}" />
   </path>
 
   <path id="compile.tests.classpath.with.jar">
     <pathelement path="${lz4-java.jar}" />
-    <fileset dir="lib" includes="*.jar" />
+    <pathelement path="${gentoo.classpath}" />
   </path>
 
   <path id="test.classpath">
@@ -260,14 +252,14 @@
     <pathelement path="${build}/unsafe-classes" />
     <pathelement path="${build}/generated-classes" />
     <pathelement path="${build}/test-classes" />
-    <fileset dir="${lib}" includes="*.jar" />
+    <pathelement path="${gentoo.classpath}" />
   </path>
 
   <path id="test.classpath.with.jar">
     <pathelement path="${lz4-java.jar}" />
     <pathelement path="${src}/test-resources" />
     <pathelement path="${build}/test-classes" />
-    <fileset dir="${lib}" includes="*.jar" />
+    <pathelement path="${gentoo.classpath}" />
   </path>
 
   <target name="test" description="run tests">
-- 
2.32.0