Skip to content

Modified Batch file for Windows, if it's called directly #1370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/distrib/win/gitblit-stop.cmd
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.GitBlitServer --stop --baseFolder data %*
@ECHO OFF

SET CD=%~dp0
SET CD=%CD:~0,-1%
java -cp "%CD%\gitblit.jar";"%CD%\ext\*" com.gitblit.GitBlitServer --stop --baseFolder data %*
6 changes: 5 additions & 1 deletion src/main/distrib/win/gitblit.cmd
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.GitBlitServer --baseFolder data %*
@ECHO OFF

SET CD=%~dp0
SET CD=%CD:~0,-1%
java -cp "%CD%\gitblit.jar";"%CD%\ext\*" com.gitblit.GitBlitServer --baseFolder data %*
4 changes: 4 additions & 0 deletions src/main/distrib/win/installService.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@ECHO OFF

@REM Install Gitblit as a Windows service.

@REM gitblitw.exe (prunmgr.exe) is a GUI application for monitoring
Expand All @@ -10,6 +12,8 @@

@REM arch = x86, amd64, or ia32
SET ARCH=amd64
SET CD=%~dp0
SET CD=%CD:~0,-1%

@REM Be careful not to introduce trailing whitespace after the ^ characters.
@REM Use ; or # to separate values in the --StartParams parameter.
Expand Down
20 changes: 13 additions & 7 deletions src/main/distrib/win/reindex-tickets.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@ECHO OFF

@REM --------------------------------------------------------------------------
@REM This is for reindexing Tickets with Lucene.
@REM
Expand All @@ -8,15 +10,19 @@
@REM reindex-tickets <baseFolder>
@REM
@REM --------------------------------------------------------------------------
@if [%1]==[] goto nobasefolder

@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.ReindexTickets --baseFolder %1
@goto end
SET CD=%~dp0
SET CD=%CD:~0,-1%

if [%1]==[] goto nobasefolder

java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.ReindexTickets --baseFolder %1
goto end

:nobasefolder
@echo "Please specify your baseFolder!"
@echo
@echo " reindex-tickets c:/gitblit-data"
@echo
echo "Please specify your baseFolder!"
echo
echo " reindex-tickets c:/gitblit-data"
echo

:end
4 changes: 4 additions & 0 deletions src/main/distrib/win/uninstallService.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@ECHO OFF

@REM arch = x86, amd64, or ia32
SET ARCH=amd64
SET CD=%~dp0
SET CD=%CD:~0,-1%

@REM Delete the gitblit service
"%CD%\%ARCH%\gitblit.exe" //DS//gitblit