From 04f0ea088b90f23881afcdbc95757985597e04e6 Mon Sep 17 00:00:00 2001 From: Steven Rowe Date: Sat, 18 Oct 2014 19:01:05 +0000 Subject: [PATCH] LUCENE-6007: 'mvndeps' Ant task: exclude the 'start' configuration (only the jetty-start jar at this point) when parsing solr/example/ivy.xml for dependencies git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1632829 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/dependencies/GetMavenDependenciesTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lucene/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java b/lucene/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java index 2f1e9672cae..66a13db22f8 100644 --- a/lucene/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java +++ b/lucene/tools/src/java/org/apache/lucene/dependencies/GetMavenDependenciesTask.java @@ -681,7 +681,8 @@ public class GetMavenDependenciesTask extends Task { String module = getModuleName(ivyXmlFile); log("Collecting external dependencies from: " + ivyXmlFile.getPath(), verboseLevel); Document document = documentBuilder.parse(ivyXmlFile); - String dependencyPath = "/ivy-module/dependencies/dependency[not(starts-with(@conf,'start->'))]"; + // Exclude the 'start' configuration in solr/example/ivy.xml + String dependencyPath = "/ivy-module/dependencies/dependency[not(starts-with(@conf,'start'))]"; NodeList dependencies = (NodeList)xpath.evaluate(dependencyPath, document, XPathConstants.NODESET); for (int depNum = 0 ; depNum < dependencies.getLength() ; ++depNum) { Element dependency = (Element)dependencies.item(depNum);