summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-12-16 21:14:48 -0500
committerJames Moger <james.moger@gitblit.com>2011-12-16 21:16:48 -0500
commitfa54bec1d90ff0baa8a509bc68acb6a92bb817a8 (patch)
tree32b6d4521961757f6b60ab7d8a0ea0066f35d125 /build.xml
parentb4573fc1fc4c71ef620b0473a503bde9a8fd3578 (diff)
downloadgitblit-fa54bec1d90ff0baa8a509bc68acb6a92bb817a8.tar.gz
gitblit-fa54bec1d90ff0baa8a509bc68acb6a92bb817a8.zip
Groovy push hooks
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 8daebf16..bd25e6c4 100644
--- a/build.xml
+++ b/build.xml
@@ -186,6 +186,14 @@
<param name="docs.output.dir" value="${project.deploy.dir}/docs" />
</antcall>
+ <!-- Copy the sample Groovy hook scripts -->
+ <mkdir dir="${project.deploy.dir}/groovy" />
+ <copy todir="${project.deploy.dir}/groovy">
+ <fileset dir="${basedir}/groovy">
+ <include name="**/*" />
+ </fileset>
+ </copy>
+
<!-- Create Zip deployment -->
<zip destfile="${distribution.zipfile}">
<fileset dir="${project.deploy.dir}">
@@ -343,7 +351,15 @@
<antcall target="buildDocs" inheritall="true" inheritrefs="true">
<param name="docs.output.dir" value="${project.war.dir}/WEB-INF/docs" />
</antcall>
-
+
+ <!-- Copy the sample Groovy hook scripts -->
+ <mkdir dir="${project.war.dir}/WEB-INF/groovy" />
+ <copy todir="${project.war.dir}/WEB-INF/groovy">
+ <fileset dir="${basedir}/groovy">
+ <include name="**/*" />
+ </fileset>
+ </copy>
+
<!-- Build the WAR web.xml from the prototype web.xml and gitblit.properties -->
<java classpath="${project.build.dir}" classname="com.gitblit.build.BuildWebXml">
<classpath refid="master-classpath" />
@@ -922,4 +938,4 @@
<delete dir="${project.war.dir}" />
<delete dir="${project.deploy.dir}" />
</target>
-</project>
+</project>