]> source.dussan.org Git - gitblit.git/commitdiff
Restore web.xml version stamping
authorJames Moger <james.moger@gitblit.com>
Fri, 3 May 2013 23:03:40 +0000 (19:03 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 3 May 2013 23:03:40 +0000 (19:03 -0400)
build.xml

index 33555299f9c2f0deff05e65589e92c0135bdc6f8..485e9813de7e9d8be8f545ac5658c0c0806c3c25 100644 (file)
--- a/build.xml
+++ b/build.xml
                <prepareDataDirectory toDir="${webinf}/data" />\r
 \r
                <!-- Build the WAR web.xml from the prototype web.xml -->\r
-               <mx:webxml sourcefile="${project.src.dir}/WEB-INF/web.xml" destfile="${webinf}/web.xml" />\r
+               <mx:webxml sourcefile="${project.src.dir}/WEB-INF/web.xml" destfile="${webinf}/web.xml">\r
+                       <replace token="@gb.version@" value="${project.version}" />\r
+               </mx:webxml>\r
 \r
                <!-- Gitblit jar -->\r
                <mx:genjar destfile="${webinf}/lib/gitblit.jar" includeresources="false" excludeclasspathjars="true">\r
                <!-- Build the Express web.xml from the prototype web.xml and gitblit.properties -->\r
                <!-- THIS FILE IS NOT OVERRIDDEN ONCE IT IS BUILT!!! -->\r
                <mx:webxml sourcefile="${project.src.dir}/WEB-INF/web.xml" destfile="${webinf}/web.xml"\r
-               propertiesFile="${project.distrib.dir}/data/gitblit.properties"\r
-               skip="server.*" />\r
+                       propertiesFile="${project.distrib.dir}/data/gitblit.properties"\r
+                       skip="server.*">\r
+                       <replace token="@gb.version@" value="${project.version}" />\r
+               </mx:webxml>\r
 \r
                <!-- Gitblit classes -->\r
                <mx:genjar destfile="${webinf}/lib/gitblit.jar" includeresources="false" excludeclasspathjars="true">\r