Changeset 22388

Show
Ignore:
Timestamp:
13.07.2010 15:03:23 (10 years ago)
Author:
ak19
Message:

Can handle the case of adjusting an empty classpath. Fixes a bug that occurs when there's an empty classpath that never got expanded to contain the necessary jar files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/gs2-server.bat

    r22084 r22388  
    8787:: try to subtract it from the classpath.  
    8888::call set test_cpath=%%CLASSPATH:%~f1=%% 
    89 call set test_cpath=%%CLASSPATH:%1=%% 
    90  
    91 :: If there IS a difference in the classpath before and after, 
    92 :: then the filepath was already on the classpath 
    93 if not "%CLASSPATH%" == "%test_cpath%" ( 
    94    echo   - CLASSPATH already correct 
     89call set test_cpath=%%CLASSPATH:%~1=%% 
     90 
     91:: If the classpath was not empty to begin with and if there IS a difference in 
     92:: the classpath before and after, then the filepath was already on the classpath 
     93if not "%CLASSPATH%" == "" if not "%CLASSPATH%" == "%test_cpath%" ( 
     94   echo   - CLASSPATH already correct: 
    9595   echo %CLASSPATH% 
    9696   goto :eof