Hi All, I am testing solr 7.7 (and 7.6) under windows. My aim is to set logging into a subdirectory that contains spaces of a directory that contains spaces.
If I set on windows: setx /m SOLR_LOGS_DIR "f:\solr_deployment\logs" and start a solr instance: F:\solr_deployment\solr-7.7.0\bin\solr.cmd start -h localhost -p 8983 -s F:\solr_deployment\solr_data -m 1g this goes smoothly. However If I set the logging directory to: setx /m SOLR_LOGS_DIR "C:\Program Files (x86)\My Directory\Another Directory\logs\solr" then I get a cryptic error: F:\solr_deployment\solr-7.7.0\bin\solr.cmd start -h localhost -p 8983 -s F:\solr_deployment\solr_data -m 1g Files was unexpected at this time. If I comment "@echo off" in both solr.cmd and solr.cmd.in, it shows that it dies around those lines in solr.cmd: F:\solr_deployment\solr-7.7.0\bin>IF "" == "" set STOP_KEY=solrrocks Files was unexpected at this time. In the solr.cmd the following block is shown: IF "%STOP_KEY%"=="" set STOP_KEY=solrrocks @REM This is quite hacky, but examples rely on a different log4j2.xml @REM so that we can write logs for examples to %SOLR_HOME%\..\logs IF [%SOLR_LOGS_DIR%] == [] ( set "SOLR_LOGS_DIR=%SOLR_SERVER_DIR%\logs" ) ELSE ( set SOLR_LOGS_DIR=%SOLR_LOGS_DIR:"=% ) comments? Cheers, Arturas
