mirror of https://github.com/apache/lucene.git
adapt to use of jline
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@158852 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
84db65bfde
commit
69380a1815
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue