summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-06-09 19:06:09 -0400
committerJames Moger <james.moger@gitblit.com>2011-06-09 19:06:09 -0400
commit81f881a10f2c8456cc4ebfa26327e15655db4646 (patch)
tree6cd76c51f4fe6c9b790472f7248855ff5ebe7b46 /build.xml
parentf339f5de2ee6d354f55e14e9340bebc4611535b3 (diff)
downloadgitblit-81f881a10f2c8456cc4ebfa26327e15655db4646.tar.gz
gitblit-81f881a10f2c8456cc4ebfa26327e15655db4646.zip
Build script improvements for release management.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml36
1 files changed, 30 insertions, 6 deletions
diff --git a/build.xml b/build.xml
index 7b22a6ba..c41b788a 100644
--- a/build.xml
+++ b/build.xml
@@ -6,9 +6,12 @@
<property name="project.mainclass" value="com.gitblit.Launcher" />
<property name="project.build.dir" value="${basedir}/build" />
- <target name="main">
+ <loadproperties srcfile="${basedir}/build.properties" />
- <!-- build dsate -->
+ <!-- Build Gitblit -->
+ <target name="main" description="Compiles Gitblit from source to website">
+
+ <!-- build date -->
<tstamp>
<format property="gb.buildDate" pattern="yyyy-MM-dd" />
</tstamp>
@@ -70,7 +73,7 @@
<include name="*.jar" />
</fileset>
</path>
- <javac destdir="${project.build.dir}">
+ <javac destdir="${project.build.dir}" failonerror="false">
<src path="${basedir}/src" />
<classpath refid="master-classpath" />
</javac>
@@ -158,10 +161,10 @@
<arg value="${basedir}/site" />
<arg value="--pageHeader" />
- <arg value="${basedir}/docs/page_header.html" />
+ <arg value="${basedir}/docs/site_header.html" />
<arg value="--pageFooter" />
- <arg value="${basedir}/docs/page_footer.html" />
+ <arg value="${basedir}/docs/site_footer.html" />
<arg value="--alias" />
<arg value="index=overview" />
@@ -274,7 +277,7 @@
<arg value="%PROPERTIES%=${basedir}/distrib/gitblit.properties" />
</java>
-
+
<!-- Create Zip deployment -->
<property name="distribution.zipfile" value="gitblit-${gb.version}.zip" />
<zip destfile="${distribution.zipfile}">
@@ -295,4 +298,25 @@
<!-- Cleanup -->
<delete dir="${project.build.dir}" />
</target>
+
+
+ <!-- Publish site to hosting service -->
+ <!-- You must add ext/commons-net-1.4.0.jar to your ANT classpath. -->
+ <target name="publishSite" description="Publish the Gitblit site to a webserver (requires ext/commons-net-1.4.0.jar)">
+ <ftp server="${ftp.server}"
+ userid="${ftp.user}"
+ password="${ftp.password}"
+ remotedir="${ftp.dir}"
+ passive="true"
+ verbose="yes">
+ <fileset dir="${basedir}/site" />
+ </ftp>
+ </target>
+
+
+ <!-- Publish distribution to github -->
+ <target name="publishDistribution" description="Publish the Gitblit distribution to Github">
+ <!-- TODO -->
+ <!-- https://github.com/oyvindkinsey/GitHubUploadTask -->
+ </target>
</project>