Apache Lucene open-source search software
LUCENE-6074: symlink jars on unix/os X systems
Robert Muir6c634c2920b0
diff --git a/lucene/analysis/kuromoji/build.xml b/lucene/analysis/kuromoji/build.xmlindex fd901afd3f2..0bce4b4ca28 100644--- a/lucene/analysis/kuromoji/build.xml+++ b/lucene/analysis/kuromoji/build.xml@@ -58,7 +58,7 @@<target name="compile-core" depends="jar-analyzers-common, common.compile-core" /><target name="download-dict" depends="ivy-availability-check,ivy-fail,ivy-configure" unless="dict.available">- <ivy:retrieve pattern="${build.dir}/${dict.src.file}" conf="${ipadic.type}"/>+ <ivy:retrieve pattern="${build.dir}/${dict.src.file}" conf="${ipadic.type}" symlink="${ivy.symlink}"/><!-- TODO: we should checksum too --><gunzip src="${build.dir}/${dict.src.file}"/><untar src="${build.dir}/${ipadic.version}.tar" dest="${build.dir}"/>diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex 4dac675ba4c..49d9d456e01 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -398,10 +398,14 @@<!-- <property name="ivy.settings.uptodate" value="true"/> --></target>+ <condition property="ivy.symlink">+ <os family="unix"/>+ </condition>+<target name="resolve" depends="ivy-availability-check,ivy-configure"><!-- todo, make this a property or something.only special cases need bundles -->- <ivy:retrieve type="jar,bundle,test,test-jar,tests" log="download-only"+ <ivy:retrieve type="jar,bundle,test,test-jar,tests" log="download-only" symlink="${ivy.symlink}"conf="${ivy.default.configuration}" sync="${ivy.sync}"/></target>diff --git a/lucene/queryparser/build.xml b/lucene/queryparser/build.xmlindex 00f805e1a1f..5df912611fc 100644--- a/lucene/queryparser/build.xml+++ b/lucene/queryparser/build.xml@@ -142,7 +142,7 @@ import org.apache.lucene.queryparser.flexible.core.messages.*;"<target name="resolve-javacc" xmlns:ivy="antlib:org.apache.ivy.ant"><!-- setup a "fake" JavaCC distribution folder in ${build.dir} to make JavaCC ANT task happy: -->- <ivy:retrieve organisation="net.java.dev.javacc" module="javacc" revision="5.0"+ <ivy:retrieve organisation="net.java.dev.javacc" module="javacc" revision="5.0" symlink="${ivy.symlink}"inline="true" conf="default" transitive="false" type="jar" sync="true"pattern="${build.dir}/javacc/bin/lib/[artifact].[ext]"/></target>diff --git a/lucene/replicator/build.xml b/lucene/replicator/build.xmlindex e97d7044fd9..4f8eed5404b 100644--- a/lucene/replicator/build.xml+++ b/lucene/replicator/build.xml@@ -32,7 +32,7 @@<target name="resolve" depends="common.resolve"><sequential><!-- javax.servlet jar -->- <ivy:retrieve conf="servlet" log="download-only" type="orbit"/>+ <ivy:retrieve conf="servlet" log="download-only" type="orbit" symlink="${ivy.symlink}"/></sequential></target>diff --git a/solr/contrib/contrib-build.xml b/solr/contrib/contrib-build.xmlindex 82b2509a79d..3f4ce272934 100644--- a/solr/contrib/contrib-build.xml+++ b/solr/contrib/contrib-build.xml@@ -49,8 +49,8 @@<target name="resolve" depends="ivy-availability-check,ivy-fail,ivy-configure"><sequential>- <ivy:retrieve conf="compile" type="jar,bundle" sync="${ivy.sync}" log="download-only"/>- <ivy:retrieve conf="test" type="jar,bundle,test" sync="${ivy.sync}" log="download-only"+ <ivy:retrieve conf="compile" type="jar,bundle" sync="${ivy.sync}" log="download-only" symlink="${ivy.symlink}"/>+ <ivy:retrieve conf="test" type="jar,bundle,test" sync="${ivy.sync}" log="download-only" symlink="${ivy.symlink}"pattern="${test.lib.dir}/[artifact]-[revision](-[classifier]).[ext]"/></sequential></target>diff --git a/solr/contrib/morphlines-core/build.xml b/solr/contrib/morphlines-core/build.xmlindex f6acf23bc73..2cf6261669b 100644--- a/solr/contrib/morphlines-core/build.xml+++ b/solr/contrib/morphlines-core/build.xml@@ -93,8 +93,8 @@<target name="resolve" depends="ivy-availability-check,ivy-fail,ivy-configure"><sequential>- <ivy:retrieve conf="compile" type="jar,bundle" sync="${ivy.sync}" log="download-only"/>- <ivy:retrieve conf="test,test.DfsMiniCluster" type="jar,bundle,test" sync="${ivy.sync}" log="download-only"+ <ivy:retrieve conf="compile" type="jar,bundle" sync="${ivy.sync}" log="download-only" symlink="${ivy.symlink}"/>+ <ivy:retrieve conf="test,test.DfsMiniCluster" type="jar,bundle,test" sync="${ivy.sync}" log="download-only" symlink="${ivy.symlink}"pattern="${test.lib.dir}/[artifact]-[revision](-[classifier]).[ext]"/></sequential></target>diff --git a/solr/core/build.xml b/solr/core/build.xmlindex 59c183a41c8..7a746d12b2a 100644--- a/solr/core/build.xml+++ b/solr/core/build.xml@@ -62,8 +62,8 @@<target name="resolve" depends="ivy-availability-check,ivy-fail,ivy-configure"><sequential>- <ivy:retrieve conf="compile,compile.hadoop" type="jar,bundle" sync="${ivy.sync}" log="download-only"/>- <ivy:retrieve conf="test,test.DfsMiniCluster" type="jar,bundle,test" sync="${ivy.sync}" log="download-only"+ <ivy:retrieve conf="compile,compile.hadoop" type="jar,bundle" sync="${ivy.sync}" log="download-only" symlink="${ivy.symlink}"/>+ <ivy:retrieve conf="test,test.DfsMiniCluster" type="jar,bundle,test" sync="${ivy.sync}" log="download-only" symlink="${ivy.symlink}"pattern="${test.lib.dir}/[artifact]-[revision](-[classifier]).[ext]"/></sequential></target>@@ -92,7 +92,7 @@<target name="resolve-javacc" xmlns:ivy="antlib:org.apache.ivy.ant"><!-- setup a "fake" JavaCC distribution folder in ${build.dir} to make JavaCC ANT task happy: --><ivy:retrieve organisation="net.java.dev.javacc" module="javacc" revision="5.0"- inline="true" transitive="false" type="jar" sync="true"+ inline="true" transitive="false" type="jar" sync="true" symlink="${ivy.symlink}"pattern="${build.dir}/javacc/bin/lib/[artifact].[ext]"/></target>diff --git a/solr/server/build.xml b/solr/server/build.xmlindex 30319483feb..c0d67ddb752 100644--- a/solr/server/build.xml+++ b/solr/server/build.xml@@ -51,14 +51,14 @@<target name="resolve" depends="ivy-availability-check,ivy-fail,ivy-configure,sync-hack"><sequential><!-- jetty libs in lib/ -->- <ivy:retrieve conf="jetty" type="jar" log="download-only"/>- <ivy:retrieve conf="logging" type="jar,bundle" log="download-only"+ <ivy:retrieve conf="jetty" type="jar" log="download-only" symlink="${ivy.symlink}"/>+ <ivy:retrieve conf="logging" type="jar,bundle" log="download-only" symlink="${ivy.symlink}"pattern="lib/ext/[artifact]-[revision].[ext]"/><!-- start.jar -->- <ivy:retrieve conf="start" type="jar" log="download-only"+ <ivy:retrieve conf="start" type="jar" log="download-only" symlink="${ivy.symlink}"pattern="start.jar"/><!-- servlet-api.jar -->- <ivy:retrieve conf="servlet" log="download-only" type="orbit"+ <ivy:retrieve conf="servlet" log="download-only" type="orbit" symlink="${ivy.symlink}"pattern="lib/servlet-api-3.0.jar"/></sequential></target>diff --git a/solr/solrj/build.xml b/solr/solrj/build.xmlindex 08067254330..bebdd242196 100644--- a/solr/solrj/build.xml+++ b/solr/solrj/build.xml@@ -44,8 +44,8 @@<target name="resolve" depends="ivy-availability-check,ivy-fail,ivy-configure"><sequential>- <ivy:retrieve conf="compile" type="jar,bundle" sync="${ivy.sync}" log="download-only"/>- <ivy:retrieve conf="test" type="jar,bundle,test" sync="${ivy.sync}" log="download-only"+ <ivy:retrieve conf="compile" type="jar,bundle" sync="${ivy.sync}" log="download-only" symlink="${ivy.symlink}"/>+ <ivy:retrieve conf="test" type="jar,bundle,test" sync="${ivy.sync}" log="download-only" symlink="${ivy.symlink}"pattern="${test.lib.dir}/[artifact]-[revision](-[classifier]).[ext]"/></sequential></target>