Blame SOURCES/0001-dependency-generation.patch

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