Changeset 20392

Show
Ignore:
Timestamp:
25.08.2009 18:21:30 (10 years ago)
Author:
ak19
Message:

Corrected the pathname to search for in PATH, it is no longer expanded to the full pathname before searching for it. Removed some comments.

Location:
gsdl/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/gs2-server.bat

    r20391 r20392  
    7979 
    8080:isinpath 
    81 :: http://ss64.com/nt/syntax-args.html 
    82 ECHO Param 1: %1 
    83 ECHO Full path of param 1: %~f1 
    84 set mypath=%~f1 
    85 echo. 
    86  
    87 :: Does not work: http://ss64.com/nt/syntax-replace.html, 
    88 :: section "Finding items within the PATH environment variable" 
    89  
     81:: http://ss64.com/nt/syntax-replace.html and http://ss64.com/nt/syntax-args.html 
     82:: (Does not work: section "Finding items within the PATH environment variable") 
    9083:: Instead, we expand the filepath of parameter 1 to its full path and 
    9184:: try to subtract it from the classpath.  
    92 call set test_cpath=%%CLASSPATH:%~f1=%% 
    93 ECHO Test_cpath: %test_cpath%& echo. 
    94 ECHO classpath: %CLASSPATH%& echo. 
     85::call set test_cpath=%%CLASSPATH:%~f1=%% 
     86call set test_cpath=%%CLASSPATH:%1=%% 
    9587 
    9688:: If there IS a difference in the classpath before and after, 
     
    10698set CLASSPATH=%GSDLHOME%\lib\java;%CLASSPATH% 
    10799 
    108 :: http://ss64.com/nt/for_r.html and http://ss64.com/nt/for.html 
     100:: http://ss64.com/nt/for_r.html and (for call) http://ss64.com/nt/for.html 
    109101:: http://ss64.com/nt/syntax-args.html 
    110102FOR /R "%GSDLHOME%\lib\java" %%G IN (*.jar) DO call :putinpath %%G 
  • gsdl/trunk/gs2-server.sh

    r19770 r20392  
    8080fi 
    8181 
    82 ##  ---- Determine GSDLHOME ---- 
     82##  ---- Determine JAVA_HOME ---- 
    8383# Set this to true if you want the Greenstone server interface to run in the background 
    8484# and not print any error messages to the x-term.