summaryrefslogtreecommitdiff
path: root/stopYACY.command
diff options
context:
space:
mode:
Diffstat (limited to 'stopYACY.command')
-rwxr-xr-xstopYACY.command8
1 files changed, 7 insertions, 1 deletions
diff --git a/stopYACY.command b/stopYACY.command
index e99e12af1..7b19fa202 100755
--- a/stopYACY.command
+++ b/stopYACY.command
@@ -1,2 +1,8 @@
cd `dirname $0`
-java -classpath classes:lib/commons-collections.jar:lib/commons-pool-1.2.jar:libx/PDFBox-0.7.1.jar:libx/log4j-1.2.9.jar:libx/tm-extractors-0.4.jar yacy -shutdown
+
+# generating the proper classpath
+CLASSPATH=""
+for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
+for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
+
+java -classpath classes:$CLASSPATH yacy -shutdown