From fa54bec1d90ff0baa8a509bc68acb6a92bb817a8 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 16 Dec 2011 21:16:48 -0500 Subject: [PATCH] Groovy push hooks --- build.xml | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/build.xml b/build.xml index 8daebf1..bd25e6c 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> -- Gitblit v1.9.1