mirror of
https://github.com/djohnlewis/stackdump
synced 2024-12-04 23:17:37 +00:00
429aa69660
Jython was too slow, and took too much memory to be reliable, particularly for large data sets.
19 lines
344 B
Bash
Executable File
19 lines
344 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR=`dirname $0`
|
|
|
|
JAVA_CMD=java
|
|
if [ -e "$SCRIPT_DIR/JAVA_CMD" ]
|
|
then
|
|
JAVA_CMD=`cat $SCRIPT_DIR/JAVA_CMD`
|
|
fi
|
|
|
|
if [ -z "`which $JAVA_CMD 2>/dev/null`" ]
|
|
then
|
|
echo "Java not found. Try specifying path in a file named JAVA_CMD in the script dir."
|
|
exit 1
|
|
fi
|
|
|
|
cd $SCRIPT_DIR/java/solr/server
|
|
$JAVA_CMD -jar start.jar
|