source: gs3-extensions/solr/trunk/src/gs3-setup.bat@ 26510

Last change on this file since 26510 was 26510, checked in by davidb, 11 years ago

Fixed small typo in file

File size: 1.8 KB
RevLine 
[24446]1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
[26510]4
[24446]5set extdesc=the Solr Extension
6
[24485]7:: The port Jetty runs on:
8set SOLR_JETTY_PORT=8983
9
10:: The port Jetty listens on for a "stop" command
11set JETTY_STOP_PORT=8079
12
[24446]13if "%OS%" == "Windows_NT" goto WinNT
14if "%OS%" == "" goto Win95
15if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
16if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
17if "%GSDLLANG%" == "fr" echo Ech‚c de l'installation - votre variable PATH n'a pas ‚t‚ ajust‚e
18if "%GSDLLANG%" == "ru" echo “áâ ­®¢ª  ­¥ ã€ « áì - “’œ ­¥ ¡ë« ãáâ ­®¢«¥­
19goto End
20
21:WinNT
22set GEXT_SOLR=%CD%
23set PATH=%GEXT_SOLR%\bin\script;%PATH%
24set PATH=%GEXT_SOLR%\lib;%PATH%
25set GS_CP_SET=yes
26goto Success
27
28:Win95
29if "%1" == "SetEnv" goto Win95Env
30REM We'll invoke a second copy of the command processor to make
31REM sure there's enough environment space
32COMMAND /E:2048 /K %0 SetEnv
33goto End
34
35:Win95Env
36set GEXT_SOLR=%CD%
37set PATH="%GEXT_SOLR%\bin\script";"%PATH%"
38set PATH="%GEXT_SOLR%\lib";"%PATH%"
39set GS_CP_SET=yes
40goto Success
41
42:Success
43
44set fulldir=%~dp0
45
46:: strip off everything up to (and including) ext dir
47set extdir=%fulldir:*ext\=%
48
49:: remove trailing slash
50set extdir=%extdir:\=%
51
52setlocal enabledelayedexpansion
[24485]53if "x%GSDL3EXTS%" == "x" (
54 set GSDL3EXTS=!extdir!
[24446]55) else (
[24485]56 set GSDL3EXTS=!GSDL3EXTS!:!extdir!
[24446]57)
[24485]58endlocal & set GSDL3EXTS=%GSDL3EXTS%
[24446]59
60echo +Your environment is now setup for %extdesc%
61
62:: Back to delayed expansion to avoid problems with environment
63:: variables with brackets in them, such as "Program Files (x86)"
64
[24485]65echo ++Solr/Jetty server will run on port %SOLR_JETTY_PORT% (+ port %JETTY_STOP_PORT% for shutdown command)"
66echo --These port values can be changed by editing:
67echo -- %0
[24446]68
[24485]69
70
[24446]71:End
72
73popd
Note: See TracBrowser for help on using the repository browser.