Changeset 31990


Ignore:
Timestamp:
2017-09-25T21:02:44+13:00 (7 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.

File:
1 edited

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!" == "" (
Note: See TracChangeset for help on using the changeset viewer.