summaryrefslogtreecommitdiff
path: root/dev-java/openjfx/files/8/0001-Change-Lucene.patch
blob: 58d0c805ccb5c5f9c4a19d4ae27b5adc7d74340b (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
--- rt-8u202-b02/build.gradle
+++ rt-8u202-b02-patched/build.gradle
@@ -3268,38 +3268,38 @@
     // The apps build is Ant based, and gradle lets us "import" ant build.xml
     // into our configuration.
 
-    ant.importBuild 'build.xml'
+    //ant.importBuild 'build.xml'
 
     // Download the Lucene libraries needed for the Ensemble8 app
-    def luceneVersion = "7.4.0"
-    getConfigurations().create("lucene");
-    dependencies {
-        lucene group: "org.apache.lucene", name: "lucene-core", version: luceneVersion
-        lucene group: "org.apache.lucene", name: "lucene-grouping", version: luceneVersion
-        lucene group: "org.apache.lucene", name: "lucene-queryparser", version: luceneVersion
-    }
+    //def luceneVersion = "7.4.0"
+    //getConfigurations().create("lucene");
+    //dependencies {
+    //    lucene group: "org.apache.lucene", name: "lucene-core", version: luceneVersion
+    //    lucene group: "org.apache.lucene", name: "lucene-grouping", version: luceneVersion
+    //    lucene group: "org.apache.lucene", name: "lucene-queryparser", version: luceneVersion
+    //}
 
     // Copy Lucene libraries into the Ensemble8/lib directory
-    File ensembleLibDir = rootProject.file("apps/samples/Ensemble8/lib");
-    def libNames = [ "lucene-core-${luceneVersion}.jar",
-                     "lucene-grouping-${luceneVersion}.jar",
-                     "lucene-queryparser-${luceneVersion}.jar" ]
-
-
-    task getLucene(type: Copy) {
-        doFirst {
-            ensembleLibDir.mkdirs();
-        }
-        into ensembleLibDir
-        includeEmptyDirs = false
-        configurations.lucene.files.each { f ->
-            libNames.each { name ->
-                if (name == f.getName()) {
-                    from f.getPath()
-                }
-            }
-        }
-    }
+    //File ensembleLibDir = rootProject.file("apps/samples/Ensemble8/lib");
+    //def libNames = [ "lucene-core-${luceneVersion}.jar",
+    //                 "lucene-grouping-${luceneVersion}.jar",
+    //                 "lucene-queryparser-${luceneVersion}.jar" ]
+
+
+    //task getLucene(type: Copy) {
+    //    doFirst {
+    //        ensembleLibDir.mkdirs();
+    //    }
+    //    into ensembleLibDir
+    //    includeEmptyDirs = false
+    //    configurations.lucene.files.each { f ->
+    //        libNames.each { name ->
+    //            if (name == f.getName()) {
+    //                from f.getPath()
+    //            }
+    //        }
+    //    }
+    //}
 
     compileTargets { t ->
         // The apps build is Ant based, and gradle lets us "import" ant apps/build.xml
@@ -3310,7 +3310,7 @@
         def jfxrtJar = "${rootProject.buildDir}/${sdkDirName}/rt/lib/ext/jfxrt.jar"
 
         def appsJar = project.task("appsJar${t.capital}") {
-            dependsOn(sdk, getLucene)
+            dependsOn(sdk)
             doLast() {
               ant.properties['targetBld'] = "$t.name"
               if (!rootProject.ext[t.upper].compileSwing) {