You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2015/08/09 15:22:21 UTC
svn commit: r1694888 - /lucene/dev/trunk/solr/bin/post
Author: ehatcher
Date: Sun Aug 9 13:22:20 2015
New Revision: 1694888
URL: http://svn.apache.org/r1694888
Log:
SOLR-7859: Fix bin/post to rely on SolrJ for RTimer use
Modified:
lucene/dev/trunk/solr/bin/post
Modified: lucene/dev/trunk/solr/bin/post
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/bin/post?rev=1694888&r1=1694887&r2=1694888&view=diff
==============================================================================
--- lucene/dev/trunk/solr/bin/post (original)
+++ lucene/dev/trunk/solr/bin/post Sun Aug 9 13:22:20 2015
@@ -220,8 +220,9 @@ if [[ -n "$RECURSIVE" ]]; then
PROPS+=('-Drecursive=yes')
fi
-echo "$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
-"$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
+SOLRJ_JAR=("$SOLR_TIP/dist"/solr-solrj-*.jar)
+echo "$JAVA" -classpath "${TOOL_JAR[0]}:${SOLRJ_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
+"$JAVA" -classpath "${TOOL_JAR[0]}:${SOLRJ_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
# post smoker:
# bin/post -c signals -out yes -type application/json -d '[{"id": 2, "val": 0.47}]'