diff options
author | Henri Sara <henri.sara@itmill.com> | 2009-03-25 07:36:55 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2009-03-25 07:36:55 +0000 |
commit | a074b1f0349c7f92746ffc0fc5195482f4ad9266 (patch) | |
tree | 3d7567211a3742424ce04bf462fb85d1e89b6aa2 /build | |
parent | 2b04235d71fb31140f687e0ef80208b731fab1d8 (diff) | |
download | vaadin-framework-a074b1f0349c7f92746ffc0fc5195482f4ad9266.tar.gz vaadin-framework-a074b1f0349c7f92746ffc0fc5195482f4ad9266.zip |
Merge from 5.3 to 6.0:
[7135] A 'nightly' target for building automatically.
[7136] Development on the 'nightly' target for building automatically.
svn changeset:7170/svn branch:6.0
Diffstat (limited to 'build')
-rw-r--r-- | build/build.xml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/build/build.xml b/build/build.xml index b483fffda7..ffd4fdfac6 100644 --- a/build/build.xml +++ b/build/build.xml @@ -50,6 +50,9 @@ <target name="package-war" depends="clean-all, package-init, init, build, docs, internal-package-mac, internal-package-war"> </target> + <target name="nightly" depends="clean-all, nightly-init, package-init, init, build, internal-package-linux"> + </target> + <!-- internal tests for packaging --> <target name="test-build" depends="clean-all, init, build" description="used for testing build.xml"> @@ -1358,4 +1361,42 @@ <!-- java2html converter --> <taskdef name="java2html" classname="de.java2html.anttasks.Java2HtmlTask" classpath="build/lib/java2html.jar" /> + + <!-- ================================================================== --> + <!-- Nightly build. --> + <!-- ================================================================== --> + + <!-- Initialize a nightly build. --> + <target name="nightly-init" depends=""> + + <fail unless="version.minor" message="The version.minor property must be defined."/> + <fail unless="build.number" message="The build.number property must be defined."/> + <fail unless="nightly.publish" message="The nightly.publish property must be defined."/> + + <!-- We need to create a symlink to the GWT directory, because we --> + <!-- are building automatically. --> + <property name="gwt.link.target" value="../../gwt-1.5"/> + + <!-- Create the link unless it already exists. --> + <available file="gwt" property="gwt.link.available"/> + <if> + <isset property="gwt.link.available"/> + <then> + <echo>${gwt.link.available}</echo> + <symlink link="gwt" resource="${gwt.link.target}" failonerror="false"/> + </then> + </if> + + <!-- Set build number. --> + <tstamp> + <format property="nightly.date" pattern="yyyyMMdd"/> + </tstamp> + <property name="version" value="${version.minor}-nightly-${nightly.date}-b${build.number}"/> + <echo>##teamcity[buildNumber '${version}']</echo> + </target> + + <!-- Copies the nightly build results to the download server. --> + <target name="nightly-install" depends=""> + <echo>Installing to ${nightly.publish}</echo> + </target> </project> |