SOLR-6120: Print a helpful error message from zkcli.bat when war is not extracted.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1610463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shawn Heisey 2014-07-14 17:31:14 +00:00
parent fb399dfe02
commit 61ad099fe9
2 changed files with 14 additions and 0 deletions

View File

@ -209,6 +209,10 @@ Other Changes
* SOLR-6228: Fixed bug in TestReplicationHandler.doTestIndexAndConfigReplication. (shalin)
* SOLR-6120: On Windows, when the war is not extracted, the zkcli.bat script
will print a helpful message indicating that the war must be unzipped instead
of a java error about a missing class.
================== 4.9.0 ==================
Versions of Major Components

View File

@ -1,3 +1,4 @@
@echo off
REM You can override pass the following parameters to this script:
REM
@ -8,4 +9,13 @@ REM Find location of this script
set SDIR=%~dp0
if "%SDIR:~-1%"=="\" set SDIR=%SDIR:~0,-1%
IF exist %SDIR%\..\..\solr-webapp\webapp\nul (
echo %SDIR%\....\..\solr-webapp\webapp exists
) ELSE (
echo -------------------
echo Unzip example\webapps\solr.war to example\solr-webapp\. to use this script.
echo Starting the Solr example via start.jar will also do this extraction.
echo -------------------
)
"%JVM%" -Dlog4j.configuration="file:%SDIR%\log4j.properties" -classpath "%SDIR%\..\..\solr-webapp\webapp\WEB-INF\lib\*;%SDIR%\..\..\lib\ext\*" org.apache.solr.cloud.ZkCLI %*