<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