Changeset 31990 for main

Show
Ignore:
Timestamp:
25.09.2017 21:02:44 (2 years ago)
Author:
ak19
Message:

Commit 31983, to make setup.bat set JAVA_HAME/JRE_HOME and put Java on PATH so that GLI can successfully run lucene_passes.pl which needs Java, did not handle spaces in the filepath when. Fixed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/setup.bat

    r31983 r31990  
    188188) 
    189189 
    190 for /F "tokens=*" %%r in ('bin\!GSDLOS!\search4j.exe -p "!HINT!" -m !MINIMUM_JAVA_VERSION!') do set GS_JAVA_HOME=%%r 
     190:: Need the call stmt, the usebackq with backticks around the full command, AND the double quotes around filepaths to properly handle spaces in the filepaths 
     191for /f "usebackq tokens=*" %%r in (`call "!GSDLHOME!\bin\!GSDLOS!\search4j.exe" -p "!HINT!" -m !MINIMUM_JAVA_VERSION!`) do set GS_JAVA_HOME=%%r 
     192 
    191193 
    192194if "!GS_JAVA_HOME!" == "" (