Permalink
Browse files

add git hooks to the repository

  • Loading branch information...
calavera committed Mar 6, 2011
1 parent 2f7bdd2 commit df928495a0f29ce5d49022ca53cdffbc779c0f70
Showing with 12 additions and 1 deletion.
  1. +5 −1 README
  2. +7 −0 git-hooks/post-commit
View
6 README
@@ -34,6 +34,10 @@ This extension can also be loaded from the command line with its default paramet
Further information on how to write your own extension can be found in the wiki: http://wiki.github.com/calavera/trinidad/extensions
+# DEVELOPMENT
+
+Copy the hooks into git-hooks directory to .git/hooks to make sure the jar file is updated when the java code is modified.
+
# Copyright
-Copyright (c) 2010 David Calavera. See LICENSE for details.
+Copyright (c) 2010-2011 David Calavera. See LICENSE for details.
View
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+git log --name-only -n1 | grep 'src/main/java' > /dev/null
+
+if [ $? = 0 ]; then
+ rake "ant:build" && git add trinidad-libs/trinidad-hotdeploy-extension.jar && git ci -m "update extension jar with the latest source code"
+fi

0 comments on commit df92849

Please sign in to comment.