From 58a1e415ff0cda6884cf004766b603e3763b0ac0 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Tue, 20 Mar 2012 19:45:20 -0400
Subject: [PATCH] Added protect-refs.groovy to the GO and WAR builds

---
 build.xml |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/build.xml b/build.xml
index 84346a5..4f73222 100644
--- a/build.xml
+++ b/build.xml
@@ -117,7 +117,7 @@
 
 		<delete dir="${project.build.dir}" />
 		<mkdir dir="${project.build.dir}" />
-		<javac debug="true" srcdir="${basedir}/src" destdir="${project.build.dir}">
+		<javac debug="true" srcdir="${basedir}/src" destdir="${project.build.dir}" includeantruntime="false">
 			<include name="com/gitblit/build/Build.java" />			
 			<include name="com/gitblit/Constants.java" />
 			<include name="com/gitblit/utils/StringUtils.java" />			
@@ -131,7 +131,7 @@
 			</fileset>
 			<pathelement path="${project.build.dir}" />				
 		</path>
-		<javac debug="true" destdir="${project.build.dir}" failonerror="false">
+		<javac debug="true" destdir="${project.build.dir}" failonerror="false" includeantruntime="false">
 			<src path="${basedir}/src" />
 			<classpath refid="master-classpath" />
 		</javac>
@@ -203,6 +203,7 @@
 			<fileset dir="${basedir}/groovy">
 				<include name="sendmail.groovy" />
 				<include name="jenkins.groovy" />
+				<include name="protect-refs.groovy" />
 			</fileset>
 		</copy>
 	
@@ -227,9 +228,8 @@
 			<copy todir="${docs.output.dir}">
 				<!-- Copy selected Gitblit resources -->
 				<fileset dir="${project.resources.dir}">
-					<include name="bootstrap.140.css" />
-					<include name="bootstrap.gb.css" />
-					<include name="markdown.css" />
+					<include name="bootstrap/**/*" />
+					<include name="gitblit.css" />
 					<include name="gitblt_25_white.png" />
 					<include name="gitblt-favicon.png" />
 					<include name="lock_go_16x16.png" />
@@ -371,6 +371,7 @@
 			<fileset dir="${basedir}/groovy">
 				<include name="sendmail.groovy" />
 				<include name="jenkins.groovy" />
+				<include name="protect-refs.groovy" />
 			</fileset>
 		</copy>
 
@@ -505,6 +506,7 @@
 			<fileset dir="${basedir}/groovy">
 				<include name="sendmail.groovy" />
 				<include name="jenkins.groovy" />
+				<include name="protect-refs.groovy" />
 			</fileset>
 		</copy>
 					
@@ -578,6 +580,7 @@
 			<resource file="${basedir}/resources/gitblt-favicon.png" />
 			<resource file="${basedir}/resources/gitweb-favicon.png" />
 			<resource file="${basedir}/resources/user_16x16.png" />
+			<resource file="${basedir}/resources/users_16x16.png" />
 			<resource file="${basedir}/resources/settings_16x16.png" />
 			<resource file="${basedir}/resources/lock_go_16x16.png" />
 			<resource file="${basedir}/resources/lock_pull_16x16.png" />
@@ -709,9 +712,8 @@
 		<copy todir="${project.site.dir}">
 			<!-- Copy selected Gitblit resources -->
 			<fileset dir="${project.resources.dir}">
-				<include name="bootstrap.140.css" />
-				<include name="bootstrap.gb.css" />
-				<include name="markdown.css" />
+				<include name="bootstrap/**/*" />
+				<include name="gitblit.css" />
 				<include name="gitblt_25_white.png" />
 				<include name="gitblt-favicon.png" />
 				<include name="lock_go_16x16.png" />

--
Gitblit v1.9.1