| | |
| | | <project name="gitblit" default="compile" basedir=".">
|
| | |
|
| | | <!-- Google Code upload task -->
|
| | | <taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask" classpath="${basedir}/tools/ant-googlecode-0.0.3.jar" name="gcupload"/>
|
| | | <taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask" |
| | | classpath="${basedir}/tools/ant-googlecode-0.0.3.jar" name="gcupload"/>
|
| | |
|
| | | <!-- Project Properties -->
|
| | | <property name="project.jar" value="gitblit.jar" />
|
| | |
| | | <property name="project.war.dir" value="${basedir}/war" />
|
| | | <property name="project.site.dir" value="${basedir}/site" />
|
| | | <property name="project.resources.dir" value="${basedir}/resources" />
|
| | | <available property="hasBuildProps" file="${basedir}/build.properties"/>
|
| | |
|
| | | <!-- Load publication servers, paths, and credentials --> |
| | | <loadproperties srcfile="${basedir}/build.properties" />
|
| | | <!--
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | Load build.properties, if available
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="buildprops" if="hasBuildProps">
|
| | | <!-- Load publication servers, paths, and credentials --> |
| | | <loadproperties>
|
| | | <file file="${basedir}/build.properties" />
|
| | | </loadproperties>
|
| | | </target>
|
| | |
|
| | |
|
| | | <!--
|
| | |
| | | Scrape the version info from code and setup the build properties
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="buildinfo">
|
| | | <target name="buildinfo" depends="buildprops">
|
| | |
|
| | | <!-- extract Gitblit version number from source code -->
|
| | | <loadfile property="gb.version" srcfile="${basedir}/src/com/gitblit/Constants.java">
|
| | |
| | | <include name="bug_16x16.png" />
|
| | | <include name="book_16x16.png" />
|
| | | <include name="blank.png" />
|
| | | <include name="federated_16x16.png" />
|
| | | </fileset>
|
| | |
|
| | | <!-- Copy Doc images -->
|
| | |
| | | <arg value="--substitute" />
|
| | | <arg value="%JGIT%=${jgit.version}" />
|
| | |
|
| | | <arg value="--load" />
|
| | | <arg value="--properties" />
|
| | | <arg value="%PROPERTIES%=${basedir}/distrib/gitblit.properties" />
|
| | |
|
| | | <arg value="--nomarkdown" />
|
| | | <arg value="%BEGINCODE%:%ENDCODE%" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value=""%BEGINCODE%=<pre class='prettyprint lang-java'>"" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%ENDCODE%=</pre>" />
|
| | | |
| | | <arg value="--regex" />
|
| | | <arg value=""\b(issue)(\s*[#]?|-){0,1}(\d+)\b!!!<a href='http://code.google.com/p/gitblit/issues/detail?id=$3'>issue $3</a>"" />
|
| | | |
| | | </java>
|
| | | </target>
|
| | |
|
| | |
| | | <include name="bug_16x16.png" />
|
| | | <include name="book_16x16.png" />
|
| | | <include name="blank.png" />
|
| | | <include name="federated_16x16.png" />
|
| | | </fileset>
|
| | |
|
| | | <!-- Copy Doc images -->
|
| | |
| | |
|
| | | <arg value="--pageHeader" />
|
| | | <arg value="${basedir}/docs/site_header.html" />
|
| | |
|
| | | |
| | | <arg value="--pageFooter" />
|
| | | <arg value="${basedir}/docs/site_footer.html" />
|
| | |
|
| | | <arg value="--analyticsSnippet" />
|
| | | <arg value="${basedir}/docs/site_analytics.html" />
|
| | | |
| | | <arg value="--adSnippet" />
|
| | | <arg value="${basedir}/docs/site_ads.html" />
|
| | |
|
| | | <arg value="--alias" />
|
| | | <arg value="index=overview" />
|
| | |
| | | <arg value="--substitute" />
|
| | | <arg value="%JGIT%=${jgit.version}" />
|
| | |
|
| | | <arg value="--load" />
|
| | | <arg value="--properties" />
|
| | | <arg value="%PROPERTIES%=${basedir}/distrib/gitblit.properties" />
|
| | | |
| | | <arg value="--nomarkdown" />
|
| | | <arg value="%BEGINCODE%:%ENDCODE%" />
|
| | |
|
| | | </java>
|
| | | <arg value="--substitute" />
|
| | | <arg value=""%BEGINCODE%=<pre class='prettyprint lang-java'>"" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%ENDCODE%=</pre>" />
|
| | |
|
| | | <arg value="--regex" />
|
| | | <arg value=""\b(issue)(\s*[#]?|-){0,1}(\d+)\b!!!<a href='http://code.google.com/p/gitblit/issues/detail?id=$3'>issue $3</a>"" />
|
| | |
|
| | | </java> |
| | | </target>
|
| | |
|
| | |
|
| | |
| | | projectname="gitblit"
|
| | | filename="${distribution.zipfile}"
|
| | | targetfilename="gitblit-${gb.version}.zip"
|
| | | summary="Standalone, integrated Gitblit server v${gb.version}"
|
| | | summary="Gitblit GO v${gb.version} (standalone, integrated Gitblit server)"
|
| | | labels="Featured, Type-Package, OpSys-All" />
|
| | |
|
| | | <!-- Upload WAR file -->
|
| | |
| | | projectname="gitblit"
|
| | | filename="${distribution.warfile}"
|
| | | targetfilename="gitblit-${gb.version}.war"
|
| | | summary="Gitblit WAR v${gb.version} for your servlet container"
|
| | | summary="Gitblit WAR v${gb.version} (standard WAR webapp for servlet containers)"
|
| | | labels="Featured, Type-Package, OpSys-All" />
|
| | | </target>
|
| | |
|