Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

adapt to use of jline

Daniel Naber69380a1815d8
diff --git a/contrib/lucli/README b/contrib/lucli/README
index 3b673f0e6e5..38f8d6592d1 100644
--- a/contrib/lucli/README
+++ b/contrib/lucli/README
@@ -2,7 +2,7 @@ lucli (pronounced Luckily) is the Lucene Command Line Interface.
INSTALLATION
-Edit the run.sh shell script
+Call "ant", then call the run.sh shell script. If it doesn't work right away:
Edit JAVA_HOME to point to your java directory.
Edit LUCLI to point to where you installed lucli.
Edit LUCLI_MEMORY and set it to the maximum amount of memory you want to allocate to lucli
@@ -11,12 +11,7 @@ Edit the run.sh shell script
ENABLING READLINE
-If you add the -r command line parameter lucli will try to use a shared library
-to enable things like tab completion and history. Unfortunately Java doesn't support
-this capability natively so you'll need a shared library for this. I'm including one
-that worked for me with Debian Linux.
-For more details about GNU readline and java see http://java-readline.sourceforge.net/
-which is the library that lucli uses.
+Readline support should automatically work thanks to JLine, see http://jline.sourceforge.net/
Documentation
diff --git a/contrib/lucli/run.sh b/contrib/lucli/run.sh
index cd0df9dc688..e6b592d74ba 100755
--- a/contrib/lucli/run.sh
+++ b/contrib/lucli/run.sh
@@ -1,12 +1,6 @@
LUCLI=.
LUCLI_MEMORY=128M
#JAVA_HOME=/home/dror/j2sdk1.4.1_03/
-CLASSPATH=${CLASSPATH}:$LUCLI/lib/libreadline-java.jar:$LUCLI/lib/lucene.jar:$LUCLI/dist/lucli-dev.jar
-PATH=${PATH}:$JAVA_HOME/bin
-LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$LUCLI
-export LD_LIBRARY_PATH
+CLASSPATH=${CLASSPATH}:$LUCLI/lib/jline.jar:$LUCLI/lib/lucene.jar:$LUCLI/dist/lucli-dev.jar
export CLASSPATH
$JAVA_HOME/bin/java -Xmx${LUCLI_MEMORY} lucli.Lucli
-#Use this line to enable tab completion. Depends on the Readline shares library
-#$JAVA_HOME/bin/java lucli.Lucli -r
-