summaryrefslogtreecommitdiff
path: root/startYACY.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 /startYACY.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 'startYACY.bat')
-rw-r--r--startYACY.bat23
1 files changed, 22 insertions, 1 deletions
diff --git a/startYACY.bat b/startYACY.bat
index 8c7cebfd0..05656a290 100644
--- a/startYACY.bat
+++ b/startYACY.bat
@@ -1 +1,22 @@
-@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
+@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
+
+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
+
+