-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from gokulprathin8/windows/shell-support
Windows/shell support
- Loading branch information
Showing
7 changed files
with
106 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@echo off | ||
|
||
set "FILE=%USERPROFILE%\geoweaver.jar" | ||
if exist "%FILE%" ( | ||
echo %FILE% exists. Removing... | ||
del "%FILE%" | ||
) | ||
|
||
echo Downloading the latest geoweaver.jar to user home directory | ||
cd %USERPROFILE% && curl -OL https://github.com/ESIPFed/Geoweaver/releases/download/latest/geoweaver.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
|
||
echo Stop running Geoweaver if any.. | ||
taskkill /f /im geoweaver.exe > nul | ||
|
||
echo Check Java.. | ||
|
||
echo Start Geoweaver.. | ||
start /b javaw -jar "%USERPROFILE%\geoweaver.jar" | ||
|
||
set STATUS=0 | ||
set counter=0 | ||
:loop | ||
ping -n 2 127.0.0.1 > nul | ||
set /a counter+=1 | ||
curl -s -o NUL -w "%%{http_code}" "http://localhost:8070/Geoweaver" > response.txt | ||
set /p STATUS=<response.txt | ||
del response.txt | ||
if "%STATUS%"=="302" ( | ||
goto :success | ||
) | ||
if %counter%==20 ( | ||
goto :error | ||
) | ||
goto :loop | ||
|
||
:success | ||
type "%USERPROFILE%\geoweaver.log" | ||
echo Success: Geoweaver is up | ||
exit /b 0 | ||
|
||
:error | ||
echo Error: Geoweaver is not up | ||
exit /b 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@echo off | ||
|
||
echo Stopping Geoweaver... | ||
|
||
taskkill /f /im javaw.exe > nul | ||
|
||
echo Geoweaver stopped successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "pygeoweaver" | ||
version = "0.6.7" | ||
version = "0.6.8" | ||
authors = [ | ||
{ name="Geoweaver team", email="[email protected]" }, | ||
] | ||
|
@@ -22,7 +22,7 @@ classifiers = [ | |
|
||
[tool.poetry] | ||
name = "pygeoweaver" | ||
version = "0.6.7" | ||
version = "0.6.8" | ||
description = "This is a wrapper package of the Geoweaver app." | ||
authors = ["Geoweaver team <[email protected]>"] | ||
readme = "README.md" | ||
|