| | |
| | | <loadfile property="gb.version" srcfile="${basedir}/src/com/gitblit/Constants.java">
|
| | | <filterchain>
|
| | | <linecontains>
|
| | | <contains value="public final static String VERSION = " />
|
| | | <contains value="public static final String VERSION = " />
|
| | | </linecontains>
|
| | | <striplinebreaks />
|
| | | <tokenfilter>
|
| | | <replacestring from="public final static String VERSION = "" to="" />
|
| | | <replacestring from="public static final String VERSION = "" to="" />
|
| | | <replacestring from="";" to="" />
|
| | | <trim />
|
| | | </tokenfilter>
|
| | | </filterchain> |
| | | </filterchain>
|
| | | </loadfile>
|
| | |
|
| | | <!-- extract JGit version number from source code -->
|
| | | <loadfile property="jgit.version" srcfile="${basedir}/src/com/gitblit/Constants.java">
|
| | | <filterchain>
|
| | | <linecontains>
|
| | | <contains value="public final static String JGIT_VERSION = " />
|
| | | <contains value="public static final String JGIT_VERSION = " />
|
| | | </linecontains>
|
| | | <striplinebreaks />
|
| | | <tokenfilter>
|
| | | <replacestring from="public final static String JGIT_VERSION = "" to="" />
|
| | | <replacestring from="public static final String JGIT_VERSION = "" to="" />
|
| | | <replacestring from="";" to="" />
|
| | | <trim />
|
| | | </tokenfilter>
|
| | |
| | | </fileset>
|
| | | </copy>
|
| | |
|
| | | <!-- Copy google-code-prettify -->
|
| | | <mkdir dir="${basedir}/src/com/gitblit/wicket/pages/prettify" />
|
| | | <copy todir="${basedir}/site/prettify">
|
| | | <fileset dir="${basedir}/src/com/gitblit/wicket/pages/prettify">
|
| | | <exclude name="thumbs.db" />
|
| | | </fileset>
|
| | | </copy>
|
| | |
|
| | | <!-- Copy screenshot thumbnails -->
|
| | | <mkdir dir="${basedir}/site/thumbs" />
|
| | | <copy todir="${basedir}/site/thumbs">
|
| | |
| | |
|
| | | <arg value="--alias" />
|
| | | <arg value="index=overview" />
|
| | | |
| | | <arg value="--alias" />
|
| | | <arg value="properties=gitblit.properties" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%VERSION%=${gb.version}" />
|
| | |
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%JGIT%=${jgit.version}" />
|
| | |
|
| | | <arg value="--load" />
|
| | | <arg value="%PROPERTIES%=${basedir}/distrib/gitblit.properties" />
|
| | |
|
| | | </java>
|
| | |
|
| | | <!-- Cleanup -->
|
| | | <delete dir="${project.build.dir}" />
|
| | | </target>
|
| | | </project>
|