Ignore:
Timestamp:
2009-08-25T18:21:30+12:00 (15 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.

File:
1 edited

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