Changeset 20392 for gsdl/trunk/gs2-server.bat
- Timestamp:
- 2009-08-25T18:21:30+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/gs2-server.bat
r20391 r20392 79 79 80 80 :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") 90 83 :: Instead, we expand the filepath of parameter 1 to its full path and 91 84 :: 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=%% 86 call set test_cpath=%%CLASSPATH:%1=%% 95 87 96 88 :: If there IS a difference in the classpath before and after, … … 106 98 set CLASSPATH=%GSDLHOME%\lib\java;%CLASSPATH% 107 99 108 :: http://ss64.com/nt/for_r.html and http://ss64.com/nt/for.html100 :: http://ss64.com/nt/for_r.html and (for call) http://ss64.com/nt/for.html 109 101 :: http://ss64.com/nt/syntax-args.html 110 102 FOR /R "%GSDLHOME%\lib\java" %%G IN (*.jar) DO call :putinpath %%G
Note:
See TracChangeset
for help on using the changeset viewer.