aboutsummaryrefslogtreecommitdiff
path: root/buildScripts/website.ant.xml
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-12-21 14:11:25 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-12-21 14:11:25 +0100
commita12675e120cf6c1924f46a48089d65ebe703b0d7 (patch)
treeea84f8cf93f90e2415c889fca090b1275fc72bed /buildScripts/website.ant.xml
parent9dd81c336165fe36373a0136aa66cc04ff6ce873 (diff)
downloadlombok-a12675e120cf6c1924f46a48089d65ebe703b0d7.tar.gz
lombok-a12675e120cf6c1924f46a48089d65ebe703b0d7.tar.bz2
lombok-a12675e120cf6c1924f46a48089d65ebe703b0d7.zip
Added support to fully automatically upload a cutting edge build to projectlombok.org, as well as a page with information about it, gathered from the changelog.
Diffstat (limited to 'buildScripts/website.ant.xml')
-rw-r--r--buildScripts/website.ant.xml52
1 files changed, 52 insertions, 0 deletions
diff --git a/buildScripts/website.ant.xml b/buildScripts/website.ant.xml
index 2f125edb..13a8ff18 100644
--- a/buildScripts/website.ant.xml
+++ b/buildScripts/website.ant.xml
@@ -208,6 +208,58 @@ such as converting the changelog into HTML, and creating javadoc.
</copy>
</target>
+ <target name="edgeRelease-build" depends="-compile-webclasses, version">
+ <mkdir dir="build/website-edge" />
+ <property name="CHANGELOG_FILE" location="doc/changelog.markdown" />
+ <property name="CHANGELOG_HTML" location="build/website-edge/changelog-edge.html" />
+ <java fork="true" classname="lombok.website.CompileChangelog" failonerror="true">
+ <classpath>
+ <path refid="buildScripts.deps.path" />
+ <pathelement location="build/webclasses" />
+ </classpath>
+ <arg value="${CHANGELOG_FILE}" />
+ <arg value="${CHANGELOG_HTML}" />
+ <arg value="-edge" />
+ <arg value="${lombok.version}" />
+ </java>
+ <loadfile property="changelog.edge" srcFile="build/website-edge/changelog-edge.html" encoding="UTF-8" />
+
+ <copy todir="build/website-edge" overwrite="true">
+ <fileset dir="website">
+ <include name="download-edge.html" />
+ </fileset>
+ <filterchain>
+ <replacetokens>
+ <token key="VERSION-EDGE" value="${lombok.version}" />
+ <token key="CHANGELOG-EDGE" value="${changelog.edge}" />
+ </replacetokens>
+ </filterchain>
+ </copy>
+
+ <delete file="build/website-edge/changelog-edge.html" />
+ <copy file="dist/lombok.jar" tofile="build/website-edge/lombok-edge.jar" />
+
+ <tar destfile="dist/website-edge.tar.bz2" compression="bzip2">
+ <tarfileset dir="build/website-edge" />
+ </tar>
+ </target>
+
+ <target name="edgeRelease" depends="edgeRelease-build">
+ <available file="libertad-upload.key" property="libertad.key.available" />
+ <fail unless="libertad.key.available">You don't have the libertad-upload.key; you'll need it to get write access to the server.</fail>
+
+ <scp
+ localFile="dist/website-edge.tar.bz2"
+ todir="lombokup@projectlombok.org:/staging"
+ keyfile="libertad-upload.key" passphrase=""
+ sftp="true" verbose="true" trust="true" />
+ <sshexec
+ host="projectlombok.org"
+ username="lombokup"
+ keyfile="libertad-upload.key" passphrase=""
+ trust="true" command="./deployEdge" />
+ </target>
+
<target name="changelogToHtml" depends="-compile-webclasses">
<mkdir dir="build/website" />
<property name="CHANGELOG_FILE" location="doc/changelog.markdown" />