Blame SOURCES/0002-Dependency-generation.patch

efebf4
From 521dc174c93efbe616dc5f573a5d293339df642b Mon Sep 17 00:00:00 2001
efebf4
From: Michael Simacek <msimacek@redhat.com>
efebf4
Date: Thu, 25 Feb 2016 15:03:17 +0100
efebf4
Subject: [PATCH 2/3] Dependency generation
efebf4
efebf4
---
efebf4
 lucene/build.xml                                            | 6 ++++--
efebf4
 lucene/common-build.xml                                     | 4 ++--
efebf4
 .../lucene/dependencies/GetMavenDependenciesTask.java       | 2 ++
efebf4
 3 files changed, 8 insertions(+), 4 deletions(-)
efebf4
ec607a
diff --git a/build.xml b/build.xml
ec607a
index 3d7ee87..33e5f07 100644
ec607a
--- a/build.xml
ec607a
+++ b/build.xml
ec607a
@@ -615,7 +615,6 @@ File | Project Structure | Platform Settings | SDKs):
ec607a
     <delete file="lucene/build/module.dependencies.properties"/>
ec607a
     <subant target="-append-module-dependencies-properties" inheritall="false" failonerror="true">
ec607a
       <fileset dir="lucene" includes="build.xml" />
ec607a
-      <fileset dir="solr" includes="build.xml" />
ec607a
       <propertyset refid="uptodate.and.compiled.properties"/>
ec607a
     </subant>
ec607a
   </target>
efebf4
diff --git a/lucene/build.xml b/lucene/build.xml
ec607a
index e3cf905..facc19b 100644
efebf4
--- a/lucene/build.xml
efebf4
+++ b/lucene/build.xml
ec607a
@@ -427,12 +427,8 @@
efebf4
     </sequential>
efebf4
   </target>
efebf4
 
efebf4
-  <target name="generate-maven-artifacts" depends="-unpack-lucene-tgz">
efebf4
-    <ant dir=".." target="resolve" inheritall="false"/>
efebf4
+  <target name="generate-maven-artifacts">
efebf4
     <antcall target="-filter-pom-templates" inheritall="false"/>
ec607a
-    <antcall target="-dist-maven" inheritall="false">
ec607a
-      <propertyset refid="uptodate.and.compiled.properties"/>
ec607a
-    </antcall>
efebf4
   </target>
efebf4
   
efebf4
   <target name="-validate-maven-dependencies" depends="compile-tools, install-maven-tasks, load-custom-tasks">
efebf4
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
ec607a
index 41da3f2..d2f9d16 100644
efebf4
--- a/lucene/common-build.xml
efebf4
+++ b/lucene/common-build.xml
ec607a
@@ -1876,7 +1876,7 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}
efebf4
   <target name="-get-maven-dependencies" depends="compile-tools,load-custom-tasks">
ec607a
     <ant dir="${common.dir}/.." target="-append-all-modules-dependencies-properties" inheritall="false"/>
efebf4
     
efebf4
-        dir="${common.dir}/.."
ec607a
+        dir="${common.dir}"
efebf4
         centralized.versions.file="${common.dir}/ivy-versions.properties"
efebf4
         module.dependencies.properties.file="${module.dependencies.properties.file}"
efebf4
         maven.dependencies.filters.file="${maven.dependencies.filters.file}"/>
efebf4
diff --git a/lucene/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java b/lucene/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java
efebf4
index 610323f..13bde29 100644
efebf4
--- a/lucene/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java
efebf4
+++ b/lucene/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java
ec607a
@@ -537,6 +537,7 @@ public class GetMavenDependenciesTask extends Task {
efebf4
   private Collection<String> getTransitiveDependenciesFromIvyCache
efebf4
   (String groupId, String artifactId, String version) {
efebf4
     SortedSet<String> transitiveDependencies = new TreeSet<>();
efebf4
+    /*
efebf4
     //                                      E.g. ~/.ivy2/cache/xerces/xercesImpl/ivy-2.9.1.xml
efebf4
     File ivyXmlFile = new File(new File(new File(ivyCacheDir, groupId), artifactId), "ivy-" + version + ".xml");
efebf4
     if ( ! ivyXmlFile.exists()) {
ec607a
@@ -558,6 +559,7 @@ public class GetMavenDependenciesTask extends Task {
efebf4
                               + groupId + ':' + artifactId + ':' + version + " from "
efebf4
                               + ivyXmlFile.getAbsolutePath(), e);
efebf4
     }
efebf4
+    */
efebf4
     return transitiveDependencies;
efebf4
   }
efebf4
 
efebf4
-- 
efebf4
2.20.1
efebf4