19 lines
745 B
Bash
19 lines
745 B
Bash
#!/bin/bash
|
|
|
|
find ./target/classes -name "*.properties"|xargs rm -f
|
|
find ./target/classes -name "*.xml"|xargs rm -f
|
|
find ./target/classes -name "*.dic"|xargs rm -f
|
|
|
|
#export CLASSPATH=$CURR_DIR/lib:$CURR_DIR:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
|
|
|
|
tmp='./target/classes':$tmp
|
|
tmp='./target/gather_program-0.0.1-SNAPSHOT-jar-with-dependencies-without-resources/*':$tmp
|
|
tmp='./bin/resources':$tmp
|
|
CLASSPATH=$tmp:$CLASSPATH
|
|
|
|
echo $CLASSPATH
|
|
JVM_ARGS="-Xmn98m -Xmx1024m -Xms512m -XX:NewRatio=4 -XX:SurvivorRatio=4 -XX:MaxTenuringThreshold=2 -XX:-UseGCOverheadLimit"
|
|
#echo JVM_ARGS=$JVM_ARGS
|
|
#ulimit -n 400000
|
|
#echo "" > nohup.out
|
|
java $JVM_ARGS -classpath $CLASSPATH org.ossean.gather.process.GatherProcess gather_projects > log/gather_projects.log 2>&1 & |