<copy todir="${project.build.dir}">\r
<fileset dir="${basedir}/src" excludes="**/*.java,**/thumbs.db" />\r
</copy>\r
+ \r
+ <!-- Set Version into web.xml -->\r
+ <replace file="${project.build.dir}/WEB-INF/web.xml" token="@gb.version@" value="${gb.version}" summary="yes"/>\r
</target>\r
\r
\r
<include name="authority.conf" />\r
</fileset>\r
</copy>\r
+ \r
+ <!-- Set Version into web.xml -->\r
+ <replace file="${project.build.dir}/WEB-INF/web.xml" token="@gb.version@" value="${gb.version}" summary="yes"/>\r
\r
<!-- Build jar -->\r
<jar jarfile="${project.deploy.dir}/${project.jar}">\r
</fileset>\r
</copy>\r
\r
+ <!-- Set Version into web.xml -->\r
+ <replace file="${project.war.dir}/WEB-INF/web.xml" token="@gb.version@" value="${gb.version}" summary="yes"/>\r
+ \r
<!-- Copy gitblit.properties as reference.properties -->\r
<copy tofile="${project.war.dir}/WEB-INF/reference.properties" \r
file="${basedir}/distrib/gitblit.properties"/>\r
<arg value="${project.war.dir}/WEB-INF/web.xml" />\r
\r
</java>\r
+ \r
+ <!-- Set Version into web.xml -->\r
+ <replace file="${project.war.dir}/WEB-INF/web.xml" token="@gb.version@" value="${gb.version}" summary="yes"/>\r
\r
<!-- Gitblit resources -->\r
<copy todir="${project.war.dir}">\r
<arg value="--propertiesFile" />\r
<arg value="${basedir}/distrib/gitblit.properties" />\r
</java>\r
+ \r
+ <!-- Set Version into web.xml -->\r
+ <replace file="${deployments.root}/WEB-INF/web.xml" token="@gb.version@" value="${gb.version}" summary="yes"/>\r
\r
<!-- Gitblit resources -->\r
<copy todir="${deployments.root}">\r