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
This commit is contained in:
Steven Rowe 2014-10-18 19:01:05 +00:00
parent 7644a6def6
commit 04f0ea088b
1 changed files with 2 additions and 1 deletions

View File

@ -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);