Changeset 17474

Show
Ignore:
Timestamp:
03.10.2008 15:43:26 (11 years ago)
Author:
oranfry
Message:

protect againt eternal link and also give some more helpful output

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/gli.bat

    r17443 r17474  
    337337:webLib 
    338338    "%JAVAPATH%\java" -Xmx128M -cp classes/;GLI.jar;lib/apache.jar;lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl %GSDLHOME% -gsdlos %GSDLOS% -perl %PERLPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9 
    339     if ERRORLEVEL 2 goto webLib 
     339    if ERRORLEVEL 2 if not "%localLibFailed%" == "true" ( 
     340        echo webLib failed, going to localLib 
     341        set webLibFailed=true 
     342        goto localLib 
     343    ) 
    340344    goto finRun  
    341345 
    342346:localLib 
    343347    "%JAVAPATH%\java" -Xmx128M -cp classes/;GLI.jar;lib/apache.jar;lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl %GSDLHOME% -gsdlos %GSDLOS% -perl %PERLPATH% -local_library %GSDLHOME%\server.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 
    344     if ERRORLEVEL 2 goto localLib 
     348    if ERRORLEVEL 2 if not "%webLibFailed%" == "true" ( 
     349        echo localLib failed, going to webLib 
     350        set localLibFailed=true 
     351        goto webLib 
     352    ) 
    345353    goto finRun 
    346354