summaryrefslogtreecommitdiff
path: root/startYACY_debug.bat
diff options
context:
space:
mode:
authorreger <reger18@arcor.de>2014-02-24 05:16:31 +0100
committerreger <reger18@arcor.de>2014-02-24 05:16:31 +0100
commita9b06f87190fc9f94a7a2dbafc32c30766062f24 (patch)
tree6524e0831aebf413fcb693da66a7f7f88f6a9d72 /startYACY_debug.bat
parentedc8e1c4ded0cd7bc1f56c0642f80464500c9c13 (diff)
add a -config command line parameter e.g. -config "port=9090" "port.ssl=8043"
- useful for remote installation to set any config file property - multipe parameter can be set at once, on Windows enclose parameter in doublequotes - special handling "adminAccount=adminuser:adminpwd" sets adminusername and md5 encoded admin-pwd - adjusted windows startbatch to allow command line parameter handling - remove not needed classpath calculation from startYACY_debug.bat
Diffstat (limited to 'startYACY_debug.bat')
-rw-r--r--startYACY_debug.bat15
1 files changed, 6 insertions, 9 deletions
diff --git a/startYACY_debug.bat b/startYACY_debug.bat
index 87c429957..3af009b59 100644
--- a/startYACY_debug.bat
+++ b/startYACY_debug.bat
@@ -3,11 +3,8 @@ title YaCy
if exist DATA\yacy.noconsole del DATA\yacy.noconsole
-If %1.==CPGEN. GoTo :CPGEN
-
Rem Generating the proper classpath unsing loops and labels
-Set CLASSPATH=htroot
-For %%X in (lib/*.jar) Do Call %0 CPGEN lib\%%X
+Set CLASSPATH=lib/yacycore.jar;htroot
REM Please change the "javastart" settings in the web-interface "Basic Configuration" -> "Advanced"
set jmx=
@@ -37,7 +34,11 @@ Echo ^>^> YaCy started as daemon process. Administration at http://localhost:%p
title YaCy - http://localhost:%port%
-start "YaCy" %priority% /B /WAIT java %javacmd% -classpath %CLASSPATH% net.yacy.yacy
+Rem commandline parameter added for -config option, like -config "port=8090" "adminAccount=admin:password"
+Rem special parameter "adminAccount=admin:password" calculates and sets new admin-pwd
+Rem any parameter in yacy.conf can me modified this way (make sure to use correct upper/lower case)
+
+start "YaCy" %priority% /B /WAIT java %javacmd% -classpath %CLASSPATH% net.yacy.yacy %1 %2 %3 %4 %5 %6 %7 %8 %9
if not exist DATA\yacy.restart GoTo :END
del DATA\yacy.restart
@@ -71,9 +72,5 @@ if defined priolvl (
GoTo :STARTJAVA
-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