summaryrefslogtreecommitdiffstats
path: root/src/main/distrib/win
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-06 13:38:44 -0500
committerJames Moger <james.moger@gitblit.com>2014-03-06 13:38:44 -0500
commit6a74e2d8ce1a0c6bcd64bdb1c64907726d007345 (patch)
tree2934fde3aa54b3180e44e66437b4d7c62532bfc5 /src/main/distrib/win
parent88693e491b0d929b6b3f5783d11126fce87b1370 (diff)
downloadgitblit-6a74e2d8ce1a0c6bcd64bdb1c64907726d007345.tar.gz
gitblit-6a74e2d8ce1a0c6bcd64bdb1c64907726d007345.zip
Improve the GO reindex-tickets shell scripts
Diffstat (limited to 'src/main/distrib/win')
-rw-r--r--src/main/distrib/win/reindex-tickets.cmd17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/main/distrib/win/reindex-tickets.cmd b/src/main/distrib/win/reindex-tickets.cmd
index e28f45f5..c9116ca2 100644
--- a/src/main/distrib/win/reindex-tickets.cmd
+++ b/src/main/distrib/win/reindex-tickets.cmd
@@ -4,10 +4,19 @@
@REM Since the Tickets feature is undergoing massive churn it may be necessary
@REM to reindex tickets due to model or index changes.
@REM
-@REM Always use forward-slashes for the path separator in your parameters!!
+@REM usage:
+@REM reindex-tickets <baseFolder>
@REM
-@REM Set FOLDER to the baseFolder.
@REM --------------------------------------------------------------------------
-@SET FOLDER=data
+@if [%1]==[] goto nobasefolder
-@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.ReindexTickets --baseFolder %FOLDER%
+@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
+
+:end \ No newline at end of file