aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-28 18:17:15 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-28 18:17:15 +0200
commitb4a4da1f9741ea6afb147dd4289989ec705a3fbd (patch)
tree76b17c3f29ac8418dedda8953cf1884b8843544f /build.xml
parent36f01682d030b32353dd8504263a00536357d2b4 (diff)
downloadlombok-b4a4da1f9741ea6afb147dd4289989ec705a3fbd.tar.gz
lombok-b4a4da1f9741ea6afb147dd4289989ec705a3fbd.tar.bz2
lombok-b4a4da1f9741ea6afb147dd4289989ec705a3fbd.zip
Version is now 'standalone' - it is separately compiled. The version is now reflected in all javadoc pages, and on the website itself.
The website design has been updated to have a link to the changelog and to mention the current version. Addresses issue #9.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml22
1 files changed, 18 insertions, 4 deletions
diff --git a/build.xml b/build.xml
index 7edc7c6e..9109bd4e 100644
--- a/build.xml
+++ b/build.xml
@@ -69,7 +69,7 @@
</copy>
</target>
- <target name="-website-main" depends="-website-clean, javadoc, changelogToHtml">
+ <target name="-website-main" depends="-website-clean, version, javadoc, changelogToHtml">
<taskdef classpath="deps/website/java2html.jar" name="java2html" classname="de.java2html.anttasks.Java2HtmlTask" />
<mkdir dir="build/website" />
<copy todir="build/website">
@@ -83,6 +83,17 @@
<exclude name="videos/**" />
</fileset>
</copy>
+ <copy todir="build/website" overwrite="true">
+ <fileset dir="website">
+ <include name="index.html" />
+ <include name="download.html" />
+ </fileset>
+ <filterchain>
+ <replacetokens>
+ <token key="VERSION" value="${lombok.version}" />
+ </replacetokens>
+ </filterchain>
+ </copy>
<antcall target="-integrateSnippet">
<param name="transformationName" value="GetterSetter" />
</antcall>
@@ -194,7 +205,9 @@
</unjar>
</target>
- <target name="version" description="Shows the version number" depends="compile">
+ <target name="version" description="Shows the version number">
+ <mkdir dir="build/lombok" />
+ <javac srcdir="src" debug="on" destdir="build/lombok" target="1.5" includes="lombok/core/Version.java" />
<java
classname="lombok.core.Version"
classpath="build/lombok"
@@ -206,11 +219,10 @@
<striplinebreaks />
</filterchain>
</loadresource>
- <delete file="build/version.txt" quiet="true" />
<echo level="info">Lombok version: ${lombok.version}</echo>
</target>
- <target name="javadoc" description="Generates the javadoc">
+ <target name="javadoc" description="Generates the javadoc" depends="version">
<delete dir="build/api" quiet="true" />
<delete dir="doc/api" quiet="true" />
<mkdir dir="build/api" />
@@ -218,6 +230,7 @@
<classpath refid="lombok.deps.path" />
<classpath refid="lombok.libs.path" />
<link href="http://java.sun.com/javase/6/docs/api/" offline="true" packagelistLoc="./deps/javadoc/java6"/>
+ <header><![CDATA[<a href="http://projectlombok.org/">Lombok</a> - ]]>v${lombok.version}</header>
<bottom><![CDATA[<i>Copyright &#169; 2009 Reinier Zwitserloot and Roel Spilker, licensed under the <a href='http://www.opensource.org/licenses/mit-license.php'>MIT licence</a>.]]></bottom>
</javadoc>
<mkdir dir="doc/api" />
@@ -250,6 +263,7 @@
<fileset dir="build" includes="changelog.txt" />
<manifest>
<attribute name="Main-Class" value="lombok.installer.Installer" />
+ <attribute name="Lombok-Version" value="${lombok.version}" />
</manifest>
</jar>
<copy file="dist/lombok-${lombok.version}.jar" tofile="dist/lombok.jar" />