lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1674998 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/server/ solr/server/build.xml
Date Mon, 20 Apr 2015 22:40:46 GMT
Author: markrmiller
Date: Mon Apr 20 22:40:45 2015
New Revision: 1674998

URL: http://svn.apache.org/r1674998
Log:
SOLR-7429: Remove Solr server module sync-hack introduced in SOLR-4050.

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/server/   (props changed)
    lucene/dev/branches/branch_5x/solr/server/build.xml

Modified: lucene/dev/branches/branch_5x/solr/server/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/server/build.xml?rev=1674998&r1=1674997&r2=1674998&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/server/build.xml (original)
+++ lucene/dev/branches/branch_5x/solr/server/build.xml Mon Apr 20 22:40:45 2015
@@ -36,30 +36,17 @@
   <!-- nothing to cover -->
   <target name="pitest"/>
 
-  <!-- a hack because we don't use sync-true since we have 3 different profiles.
-       we have these different profiles because each has a different artifact pattern.
-       this way we can rename servlet-api-xxxxxxxxxxxxxxxxxxx.jar -> lib/servlet-api-3.0.jar,
-       and rename jetty-start-xxxxxxxxxxxxx.jar -> start.jar (not in lib/) ! 
-
-       there is probably a cleaner way: but this ensure we have no garbage if jetty is upgraded
-->
-  <target name="sync-hack" unless="solr.skip.sync-hack">
-    <delete failonerror="false">
-      <fileset dir="lib" includes="*.jar"/>
-    </delete>
-  </target>
-
-  <target name="resolve" depends="ivy-availability-check,ivy-fail,ivy-configure,sync-hack">
+  <target name="resolve" depends="ivy-availability-check,ivy-fail,ivy-configure">
     <sequential>
     <!-- jetty libs in lib/ -->
-    <ivy:retrieve conf="jetty" type="jar" log="download-only" symlink="${ivy.symlink}"/>
+    <ivy:retrieve conf="jetty,servlet" type="jar" log="download-only" symlink="${ivy.symlink}"
+    	          pattern="lib/[artifact]-[revision].[ext]" sync="true"/>
     <ivy:retrieve conf="logging" type="jar,bundle" log="download-only" symlink="${ivy.symlink}"
-                  pattern="lib/ext/[artifact]-[revision].[ext]"/>
-    <!-- start.jar -->
+                  pattern="lib/ext/[artifact]-[revision].[ext]" sync="true"/>
+    <!-- start.jar - we don't use sync=true here, we don't own the dir, but
+         it's one jar with a constant name and we don't need it -->
     <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" symlink="${ivy.symlink}"
-                  pattern="lib/servlet-api-3.0.jar"/>
     </sequential>
   </target>
 



Mime
View raw message