Thanks, Good idea! I was afraid that the module checks filenames directly, so requires *.jar, but if it works, it is a good idea.
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Sunday, March 08, 2015 7:09 PM > To: [email protected] > Subject: svn commit: r1665063 - in /lucene/dev/trunk/solr/core/src: test- > files/runtimecode/ test/org/apache/solr/core/ > > Author: noble > Date: Sun Mar 8 18:09:25 2015 > New Revision: 1665063 > > URL: http://svn.apache.org/r1665063 > Log: > SOLR-7073: rename the .jar files to .jar.bin so that the build scripts don't > fail > > Added: > lucene/dev/trunk/solr/core/src/test-files/runtimecode/runtimelibs.jar.bin > - copied unchanged from r1665062, lucene/dev/trunk/solr/core/src/test- > files/runtimecode/runtimelibs.jar > lucene/dev/trunk/solr/core/src/test- > files/runtimecode/runtimelibs_v2.jar.bin > - copied unchanged from r1664797, lucene/dev/trunk/solr/core/src/test- > files/runtimecode/runtimelibs_v2.jar > Removed: > lucene/dev/trunk/solr/core/src/test-files/runtimecode/runtimelibs.jar > lucene/dev/trunk/solr/core/src/test-files/runtimecode/runtimelibs_v2.jar > Modified: > > lucene/dev/trunk/solr/core/src/test/org/apache/solr/core/TestDynamicLoa > ding.java > > Modified: > lucene/dev/trunk/solr/core/src/test/org/apache/solr/core/TestDynamicLoa > ding.java > URL: > http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apa > che/solr/core/TestDynamicLoading.java?rev=1665063&r1=1665062&r2=1665 > 063&view=diff > ========================================================== > ==================== > --- > lucene/dev/trunk/solr/core/src/test/org/apache/solr/core/TestDynamicLoa > ding.java (original) > +++ > lucene/dev/trunk/solr/core/src/test/org/apache/solr/core/TestDynamic > +++ Loading.java Sun Mar 8 18:09:25 2015 > @@ -21,7 +21,6 @@ package org.apache.solr.core; import > org.apache.solr.client.solrj.SolrClient; > import org.apache.solr.client.solrj.impl.HttpSolrClient; > import org.apache.solr.cloud.AbstractFullDistribZkTestBase; > -import org.apache.solr.common.cloud.ZkStateReader; > import org.apache.solr.handler.TestBlobHandler; > import org.apache.solr.util.RESTfulServerProvider; > import org.apache.solr.util.RestTestHarness; > @@ -35,7 +34,6 @@ import java.io.FileInputStream; import > java.io.FileOutputStream; import java.io.IOException; import > java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; > import java.util.ArrayList; > import java.util.Arrays; > import java.util.List; > @@ -157,10 +155,10 @@ public class TestDynamicLoading extends > } > ByteBuffer jar = null; > > -// jar = persistZip("/tmp/runtimelibs.jar", TestDynamicLoading.class, > RuntimeLibReqHandler.class, RuntimeLibResponseWriter.class, > RuntimeLibSearchComponent.class); > +// jar = persistZip("/tmp/runtimelibs.jar.bin", TestDynamicLoading.class, > RuntimeLibReqHandler.class, RuntimeLibResponseWriter.class, > RuntimeLibSearchComponent.class); > // if(true) return; > > - jar = getFileContent("runtimecode/runtimelibs.jar"); > + jar = getFileContent("runtimecode/runtimelibs.jar.bin"); > TestBlobHandler.postAndCheck(cloudClient, baseURL, blobName, jar, 1); > > payload = "{\n" + > @@ -204,7 +202,7 @@ public class TestDynamicLoading extends > "org.apache.solr.core.RuntimeLibSearchComponent", 10); > compareValues(result, MemClassLoader.class.getName(), asList( > "loader")); > > - jar = getFileContent("runtimecode/runtimelibs_v2.jar"); > + jar = getFileContent("runtimecode/runtimelibs_v2.jar.bin"); > TestBlobHandler.postAndCheck(cloudClient, baseURL, blobName, jar, 2); > payload = "{\n" + > "'update-runtimelib' : { 'name' : 'colltest' ,'version':2}\n" + --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
