-
Notifications
You must be signed in to change notification settings - Fork 2
/
shellindra.sh
executable file
·35 lines (26 loc) · 1 KB
/
shellindra.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
echo ---------------------------
echo Indra Shell v. 0.1.2
echo ---------------------------
echo
CONFIG="config"
PREPROCESS="pp"
INDEX="index"
LOAD="load"
TEST="test"
COMMAND=$1
if [ "$COMMAND" == "$CONFIG" ]; then
mvn clean package
fi
if [ "$COMMAND" == "$PREPROCESS" ]; then
java -Xmx30g -cp indra-preprocessing/target/indra-preprocessing-1.1.0-rc4-jar-with-dependencies.jar org.lambda3.indra.pp.IndraPreProcessorCommandLine pp "${@:2}"
fi
if [ "$COMMAND" == "$INDEX" ]; then
java -Xmx30g -cp indra-index/target/indra-index-1.1.0-rc4-jar-with-dependencies.jar org.lambda3.indra.indexer.IndraIndexerCommandLine index "${@:2}"
fi
if [ "$COMMAND" == "$LOAD" ]; then
java -Xmx30g -cp indra-index/target/indra-index-1.1.0-rc4-jar-with-dependencies.jar org.lambda3.indra.loader.LoaderCommandLine load "${@:2}"
fi
if [ "$COMMAND" == "$TEST" ]; then
java -Xmx30g -cp indra-index/target/indra-index-1.1.0-rc4-jar-with-dependencies.jar org.lambda3.indra.loader.LoaderCommandLine test "${@:2}"
fi