Last change
on this file since 5727 was 4848, checked in by kjdon, 21 years ago |
changed the tomcat directory in comms to jakarta, so paths to tomcat are now comms/jakarta/tomcat, instead of comms/tomcat/jakarta, which makes much more sense :-)
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
1 | @echo off
|
---|
2 |
|
---|
3 | if exist setup.bat goto dirOK
|
---|
4 | echo You must source the script from within the Greenstone home directory
|
---|
5 | goto end
|
---|
6 |
|
---|
7 | :dirOK
|
---|
8 |
|
---|
9 | :: Set the GSDL3HOME variable to the current directory
|
---|
10 | :: This is an unbelievably disgusting process under Windows - improvements anyone?
|
---|
11 | echo e 100 "set GSDL3HOME=" > sethome.tmp
|
---|
12 | echo rcx >> sethome.tmp
|
---|
13 | echo e >> sethome.tmp
|
---|
14 | echo n sethome.bat >> sethome.tmp
|
---|
15 | echo w >> sethome.tmp
|
---|
16 | echo q >> sethome.tmp
|
---|
17 | debug < sethome.tmp > nul
|
---|
18 | del sethome.tmp
|
---|
19 | cd >> sethome.bat
|
---|
20 | call sethome.bat
|
---|
21 | del sethome.bat
|
---|
22 | echo GSDL3HOME: %GSDL3HOME%
|
---|
23 |
|
---|
24 | :: Set other important environment variables
|
---|
25 | set GSDLOS=windows
|
---|
26 | set PATH=%PATH%;%GSDL3HOME%\bin;%GSDL3HOME%\bin\script;%GSDL3HOME%\lib
|
---|
27 |
|
---|
28 | set CATALINA_HOME=%GSDL3HOME%\comms\jakarta\tomcat
|
---|
29 | set CATALINA_OPTS="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=%GSDL3HOME% -DGSDLOS=%GSDLOS% -DGSDLHOME= -DPATH=%PATH%"
|
---|
30 |
|
---|
31 | :: Set the CLASSPATH environment variable
|
---|
32 | :: This should work but doesn't: for %%j in (*.jar) do set CLASSPATH=%CLASSPATH%;%GSDL3HOME%\lib\java\%%j
|
---|
33 | set CLASSPATH=%GSDL3HOME%\resources\java;%GSDL3HOME%\src\java;%CATALINA_HOME%\common\lib\servlet.jar
|
---|
34 | cd %GSDL3HOME%\lib\java
|
---|
35 | if exist setcp.bat del setcp.bat
|
---|
36 | for %%j in (*.jar) do echo set CLASSPATH=%%CLASSPATH%%;%GSDL3HOME%\lib\java\%%j>> setcp.bat
|
---|
37 | call setcp.bat
|
---|
38 | del setcp.bat
|
---|
39 | echo CLASSPATH: %CLASSPATH%
|
---|
40 |
|
---|
41 | cd %GSDL3HOME%
|
---|
42 | :end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.