summaryrefslogtreecommitdiffstats
path: root/src/main/distrib/win
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-03-27 12:46:05 -0400
committerJames Moger <james.moger@gitblit.com>2013-03-27 17:22:08 -0400
commitf6b200be4c8b90c26886c6cdd5809abac8c4ac15 (patch)
treea948dbcf6f24bf884ad95a8d6830b4ec4e1706cf /src/main/distrib/win
parentb79ade104858ce6714a7329b7629b331564a2ea5 (diff)
downloadgitblit-f6b200be4c8b90c26886c6cdd5809abac8c4ac15.tar.gz
gitblit-f6b200be4c8b90c26886c6cdd5809abac8c4ac15.zip
Reorganized to Apache Standard Directory Layout & integrated Moxie
This is a massive commit which reorganizes the entire project structure (although it is still monolithic), removes the Build classes, and switches to Moxie, a smarter Ant build tookit based on the original Gitblit Build classes. The Ant build script will likely require additional fine-tuning, but this is big step forward.
Diffstat (limited to 'src/main/distrib/win')
-rw-r--r--src/main/distrib/win/add-indexed-branch.cmd20
-rw-r--r--src/main/distrib/win/authority.cmd1
-rw-r--r--src/main/distrib/win/gitblit-stop.cmd1
-rw-r--r--src/main/distrib/win/gitblit.cmd1
-rw-r--r--src/main/distrib/win/installService.cmd38
-rw-r--r--src/main/distrib/win/uninstallService.cmd5
6 files changed, 66 insertions, 0 deletions
diff --git a/src/main/distrib/win/add-indexed-branch.cmd b/src/main/distrib/win/add-indexed-branch.cmd
new file mode 100644
index 00000000..a7c4451a
--- /dev/null
+++ b/src/main/distrib/win/add-indexed-branch.cmd
@@ -0,0 +1,20 @@
+@REM --------------------------------------------------------------------------
+@REM This is for Lucene search integration.
+@REM
+@REM Allows you to add an indexed branch specification to the repository config
+@REM for all matching repositories in the specified folder.
+@REM
+@REM All repositories are included unless excluded using a --skip parameter.
+@REM --skip supports simple wildcard fuzzy matching however only 1 asterisk is
+@REM allowed per parameter.
+@REM
+@REM Always use forward-slashes for the path separator in your parameters!!
+@REM
+@REM Set FOLDER to the server's git.repositoriesFolder
+@REM Set BRANCH ("default" or fully qualified ref - i.e. refs/heads/master)
+@REM Set EXCLUSIONS for any repositories that you do not want to change
+@REM --------------------------------------------------------------------------
+@SET FOLDER=c:/gitblit/git
+@SET EXCLUSIONS=--skip test.git --skip group/test*
+@SET BRANCH=default
+@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.AddIndexedBranch --repositoriesFolder %FOLDER% --branch %BRANCH% %EXCLUSIONS% %*
diff --git a/src/main/distrib/win/authority.cmd b/src/main/distrib/win/authority.cmd
new file mode 100644
index 00000000..f9a18640
--- /dev/null
+++ b/src/main/distrib/win/authority.cmd
@@ -0,0 +1 @@
+@java -cp gitblit.jar com.gitblit.authority.Launcher --baseFolder data %*
diff --git a/src/main/distrib/win/gitblit-stop.cmd b/src/main/distrib/win/gitblit-stop.cmd
new file mode 100644
index 00000000..34f0f4be
--- /dev/null
+++ b/src/main/distrib/win/gitblit-stop.cmd
@@ -0,0 +1 @@
+@java -jar gitblit.jar --stop --baseFolder data %*
diff --git a/src/main/distrib/win/gitblit.cmd b/src/main/distrib/win/gitblit.cmd
new file mode 100644
index 00000000..1a6d7e09
--- /dev/null
+++ b/src/main/distrib/win/gitblit.cmd
@@ -0,0 +1 @@
+@java -jar gitblit.jar --baseFolder data %*
diff --git a/src/main/distrib/win/installService.cmd b/src/main/distrib/win/installService.cmd
new file mode 100644
index 00000000..a684ab21
--- /dev/null
+++ b/src/main/distrib/win/installService.cmd
@@ -0,0 +1,38 @@
+@REM Install Gitblit as a Windows service.
+
+@REM gitblitw.exe (prunmgr.exe) is a GUI application for monitoring
+@REM and configuring the Gitblit procrun service.
+@REM
+@REM By default this tool launches the service properties dialog
+@REM but it also has some other very useful functionality.
+@REM
+@REM http://commons.apache.org/daemon/procrun.html
+
+@REM arch = x86, amd64, or ia32
+SET ARCH=amd64
+
+@REM Be careful not to introduce trailing whitespace after the ^ characters.
+@REM Use ; or # to separate values in the --StartParams parameter.
+"%CD%\%ARCH%\gitblit.exe" //IS//gitblit ^
+ --DisplayName="gitblit" ^
+ --Description="a pure Java Git solution" ^
+ --Startup=auto ^
+ --LogPath="%CD%\logs" ^
+ --LogLevel=INFO ^
+ --LogPrefix=gitblit ^
+ --StdOutput=auto ^
+ --StdError=auto ^
+ --StartPath="%CD%" ^
+ --StartClass=org.moxie.MxLauncher ^
+ --StartMethod=main ^
+ --StartParams="--storePassword;gitblit;--baseFolder;%CD%\data" ^
+ --StartMode=jvm ^
+ --StopPath="%CD%" ^
+ --StopClass=org.moxie.MxLauncher ^
+ --StopMethod=main ^
+ --StopParams="--stop;--baseFolder;%CD%\data" ^
+ --StopMode=jvm ^
+ --Classpath="%CD%\gitblit.jar" ^
+ --Jvm=auto ^
+ --JvmMx=1024
+ \ No newline at end of file
diff --git a/src/main/distrib/win/uninstallService.cmd b/src/main/distrib/win/uninstallService.cmd
new file mode 100644
index 00000000..e6c3b98c
--- /dev/null
+++ b/src/main/distrib/win/uninstallService.cmd
@@ -0,0 +1,5 @@
+@REM arch = x86, amd64, or ia32
+SET ARCH=amd64
+
+@REM Delete the gitblit service
+"%CD%\%ARCH%\gitblit.exe" //DS//gitblit \ No newline at end of file