summaryrefslogtreecommitdiff
path: root/stopYACY.bat
diff options
context:
space:
mode:
authortheli <theli@6c8d7289-2bf4-0310-a012-ef5d649a1542>2005-05-18 07:35:47 +0000
committertheli <theli@6c8d7289-2bf4-0310-a012-ef5d649a1542>2005-05-18 07:35:47 +0000
commit7daebb86922e12d6ba3bcbce7498e4a959e813e4 (patch)
treee547a307de657bd2a43963d43a82da3d60444005 /stopYACY.bat
parentdfde28a244a742d36422cfbe532af8d8835765b4 (diff)
*) Adding dynamic java classpath generation to windows startup/shutdown scripts
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@131 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'stopYACY.bat')
-rw-r--r--stopYACY.bat20
1 files changed, 19 insertions, 1 deletions
diff --git a/stopYACY.bat b/stopYACY.bat
index a0c58eadf..1f5f287a1 100644
--- a/stopYACY.bat
+++ b/stopYACY.bat
@@ -1,2 +1,20 @@
-@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
+@Echo Off
+If %1.==CPGEN. GoTo :CPGEN
+Rem Generating the proper classpath unsing loops and labels
+Set CLASSPATH=classes
+For %%X in (lib/*.jar) Do Call %0 CPGEN lib\%%X
+For %%X in (libx/*.jar) Do Call %0 CPGEN libx\%%X
+
+Rem Starting yacy
+Echo Generated Classpath:%CLASSPATH%
+java -classpath %CLASSPATH% yacy -shutdown
+
+GoTo :END
+
+Rem This target is used to concatenate the classpath parts
+:CPGEN
+Set CLASSPATH=%CLASSPATH%;%2
+
+Rem Target needed to jump to the end of the file
+:END