Blame SOURCES/0001-dependency-generation.patch

6d6f47
From 8d6fc5deeea8e870e3fdcb798a01940e48a0cbe3 Mon Sep 17 00:00:00 2001
6d6f47
From: rpm-build <rpm-build>
6d6f47
Date: Fri, 2 May 2014 11:07:23 +0200
6d6f47
Subject: [PATCH] dependency generation
6d6f47
6d6f47
Signed-off-by: rpm-build <rpm-build>
6d6f47
---
6d6f47
 build.xml                                                          | 2 +-
6d6f47
 common-build.xml                                                   | 7 +++----
6d6f47
 .../org/apache/lucene/dependencies/GetMavenDependenciesTask.java   | 2 ++
6d6f47
 3 files changed, 6 insertions(+), 5 deletions(-)
6d6f47
6d6f47
diff --git a/build.xml b/build.xml
6d6f47
index 3237141..28fffe3 100644
6d6f47
--- a/build.xml
6d6f47
+++ b/build.xml
6d6f47
@@ -418,7 +418,7 @@
6d6f47
 
6d6f47
   <target name="generate-maven-artifacts" depends="-unpack-lucene-tgz">
6d6f47
     <ant dir=".." target="resolve" inheritall="false"/>
6d6f47
-    <antcall target="-filter-pom-templates" inheritall="false"/>
6d6f47
+    <antcall target="filter-pom-templates" inheritall="false"/>
6d6f47
     <antcall target="-dist-maven" inheritall="false">
6d6f47
       <propertyset refid="uptodate.and.compiled.properties"/>
6d6f47
     </antcall>
6d6f47
diff --git a/common-build.xml b/common-build.xml
6d6f47
index 7068fe6..b6d4b9f 100644
6d6f47
--- a/common-build.xml
6d6f47
+++ b/common-build.xml
6d6f47
@@ -1555,10 +1555,9 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}
6d6f47
 
6d6f47
   <property name="maven.dependencies.filters.file" location="${common.build.dir}/maven.dependencies.filters.properties"/>
6d6f47
 
6d6f47
-  <target name="-get-maven-dependencies" depends="compile-tools,load-custom-tasks">
6d6f47
-    <ant dir="${common.dir}/.." target="-append-all-modules-dependencies-properties" inheritall="false"/>
6d6f47
+  <target name="-get-maven-dependencies" depends="compile-tools,load-custom-tasks,-append-module-dependencies-properties">
6d6f47
     
6d6f47
-        dir="${common.dir}/.."
6d6f47
+        dir="."
6d6f47
         centralized.versions.file="${common.dir}/ivy-versions.properties"
6d6f47
         module.dependencies.properties.file="${module.dependencies.properties.file}"
6d6f47
         maven.dependencies.filters.file="${maven.dependencies.filters.file}"/>
6d6f47
@@ -1578,7 +1577,7 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}
6d6f47
     </copy>
6d6f47
   </target>
6d6f47
 
6d6f47
-  <target name="-filter-pom-templates" depends="-get-maven-dependencies">
6d6f47
+  <target name="filter-pom-templates" depends="-get-maven-dependencies">
6d6f47
     <mkdir dir="${filtered.pom.templates.dir}"/>
6d6f47
     <copy todir="${common.dir}/build/poms" overwrite="true" encoding="UTF-8" filtering="on">
6d6f47
       <fileset dir="${common.dir}/../dev-tools/maven"/>
6d6f47
diff --git a/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java b/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java
6d6f47
index 2069c7d..d891bc5 100644
6d6f47
--- a/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java
6d6f47
+++ b/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java
6d6f47
@@ -481,6 +481,7 @@ public class GetMavenDependenciesTask extends Task {
6d6f47
   private Collection<String> getTransitiveDependenciesFromIvyCache
6d6f47
   (String groupId, String artifactId, String version) {
6d6f47
     SortedSet<String> transitiveDependencies = new TreeSet<>();
6d6f47
+    /*
6d6f47
     //                                      E.g. ~/.ivy2/cache/xerces/xercesImpl/ivy-2.9.1.xml
6d6f47
     File ivyXmlFile = new File(new File(new File(ivyCacheDir, groupId), artifactId), "ivy-" + version + ".xml");
6d6f47
     if ( ! ivyXmlFile.exists()) {
6d6f47
@@ -502,6 +503,7 @@ public class GetMavenDependenciesTask extends Task {
6d6f47
                               + groupId + ':' + artifactId + ':' + version + " from "
6d6f47
                               + ivyXmlFile.getAbsolutePath(), e);
6d6f47
     }
6d6f47
+    */
6d6f47
     return transitiveDependencies;
6d6f47
   }
6d6f47
 
6d6f47
-- 
6d6f47
1.9.0
6d6f47