| | |
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="buildinfo">
|
| | | <!-- build date -->
|
| | | <tstamp>
|
| | | <format property="gb.buildDate" pattern="yyyy-MM-dd" />
|
| | | </tstamp>
|
| | |
|
| | | <!-- extract Gitblit version number from source code -->
|
| | | <loadfile property="gb.version" srcfile="${basedir}/src/com/gitblit/Constants.java">
|
| | |
| | | </tokenfilter>
|
| | | </filterchain>
|
| | | </loadfile>
|
| | | |
| | |
|
| | | <!-- extract Gitblit version date from source code -->
|
| | | <loadfile property="gb.versionDate" srcfile="${basedir}/src/com/gitblit/Constants.java">
|
| | | <filterchain>
|
| | | <linecontains>
|
| | | <contains value="public static final String VERSION_DATE = " />
|
| | | </linecontains>
|
| | | <striplinebreaks />
|
| | | <tokenfilter>
|
| | | <replacestring from="public static final String VERSION_DATE = "" to="" />
|
| | | <replacestring from="";" to="" />
|
| | | <trim />
|
| | | </tokenfilter>
|
| | | </filterchain>
|
| | | </loadfile>
|
| | | |
| | | <!-- extract JGit version number from source code -->
|
| | | <loadfile property="jgit.version" srcfile="${basedir}/src/com/gitblit/Constants.java">
|
| | | <filterchain>
|
| | |
| | | <copy todir="${project.deploy.dir}">
|
| | | <fileset dir="${basedir}/distrib">
|
| | | <include name="**/*" />
|
| | | </fileset>
|
| | | <fileset dir="${basedir}">
|
| | | <include name="LICENSE" />
|
| | | <include name="NOTICE" />
|
| | | </fileset>
|
| | | </copy>
|
| | |
|
| | |
| | | <arg value="%WAR%=${distribution.warfile}" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%BUILDDATE%=${gb.buildDate}" />
|
| | | <arg value="%BUILDDATE%=${gb.versionDate}" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%JGIT%=${jgit.version}" />
|
| | |
| | | </fileset>
|
| | | <fileset dir="${basedir}/src/WEB-INF">
|
| | | <include name="web.xml" />
|
| | | </fileset>
|
| | | <fileset dir="${basedir}">
|
| | | <include name="LICENSE" />
|
| | | <include name="NOTICE" />
|
| | | </fileset>
|
| | | </copy>
|
| | |
|
| | |
| | | <arg value="%WAR%=${distribution.warfile}" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%BUILDDATE%=${gb.buildDate}" />
|
| | | <arg value="%BUILDDATE%=${gb.versionDate}" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%JGIT%=${jgit.version}" />
|