summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-05-23 16:46:09 -0400
committerJames Moger <james.moger@gitblit.com>2011-05-23 16:46:09 -0400
commita4d2498b7f94012cfdf481fcf151f8cfd7537a42 (patch)
treea5ad4a3d883d80ac76992799510544a43c7c124a /build.xml
parenta9299738a991014788b72db7c9afc946633590e2 (diff)
downloadgitblit-a4d2498b7f94012cfdf481fcf151f8cfd7537a42.tar.gz
gitblit-a4d2498b7f94012cfdf481fcf151f8cfd7537a42.zip
User list. Revised home page. Updated Jetty. Secure cookies. Docs.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml51
1 files changed, 42 insertions, 9 deletions
diff --git a/build.xml b/build.xml
index f47e5e9b..a3394c65 100644
--- a/build.xml
+++ b/build.xml
@@ -8,7 +8,12 @@
<target name="main">
- <!-- extract version number from source code -->
+ <!-- build dsate -->
+ <tstamp>
+ <format property="gb.buildDate" pattern="yyyy-MM-dd" />
+ </tstamp>
+
+ <!-- extract Git:Blit version number from source code -->
<loadfile property="gb.version" srcfile="${basedir}/src/com/gitblit/Constants.java">
<filterchain>
<linecontains>
@@ -20,6 +25,21 @@
<replacestring from="&quot;;" to="" />
<trim />
</tokenfilter>
+ </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 = " />
+ </linecontains>
+ <striplinebreaks />
+ <tokenfilter>
+ <replacestring from="public final static String JGIT_VERSION = &quot;" to="" />
+ <replacestring from="&quot;;" to="" />
+ <trim />
+ </tokenfilter>
</filterchain>
</loadfile>
<echo>Building Git:Blit ${gb.version}</echo>
@@ -118,22 +138,22 @@
<include name="book_16x16.png" />
<include name="blank.png" />
</fileset>
-
+
<!-- Copy Doc images -->
<fileset dir="${basedir}/docs">
<include name="*.png" />
<include name="*.js" />
</fileset>
</copy>
-
+
<!-- Copy Fancybox -->
<mkdir dir="${basedir}/site/fancybox" />
- <copy todir="${basedir}/site/fancybox">
- <fileset dir="${basedir}/docs/fancybox" >
+ <copy todir="${basedir}/site/fancybox">
+ <fileset dir="${basedir}/docs/fancybox">
<exclude name="thumbs.db" />
</fileset>
</copy>
-
+
<!-- Copy screenshot thumbnails -->
<mkdir dir="${basedir}/site/thumbs" />
<copy todir="${basedir}/site/thumbs">
@@ -141,7 +161,7 @@
<include name="*.png" />
</fileset>
</copy>
-
+
<!-- Copy screenshots -->
<mkdir dir="${basedir}/site/screenshots" />
<copy todir="${basedir}/site/screenshots">
@@ -150,11 +170,12 @@
</fileset>
</copy>
+ <!-- Build site pages -->
<java classpath="${project.build.dir}" classname="com.gitblit.BuildSite">
<classpath refid="master-classpath" />
<arg value="--sourceFolder" />
<arg value="${basedir}/docs" />
-
+
<arg value="--outputFolder" />
<arg value="${basedir}/site" />
@@ -163,9 +184,21 @@
<arg value="--pageFooter" />
<arg value="${basedir}/docs/page_footer.html" />
-
+
<arg value="--alias" />
<arg value="index=overview" />
+
+ <arg value="--substitute" />
+ <arg value="%VERSION%=${gb.version}" />
+
+ <arg value="--substitute" />
+ <arg value="%DISTRIBUTION%=${distribution.zipfile}" />
+
+ <arg value="--substitute" />
+ <arg value="%BUILDDATE%=${gb.buildDate}" />
+
+ <arg value="--substitute" />
+ <arg value="%JGIT%=${jgit.version}" />
</java>
</target>