diff options
author | Marko Grönroos <magi@iki.fi> | 2009-03-25 15:50:22 +0000 |
---|---|---|
committer | Marko Grönroos <magi@iki.fi> | 2009-03-25 15:50:22 +0000 |
commit | 747fa23f1d3db902d065a9d8b0b2ec716965cf43 (patch) | |
tree | a9d931a5b2ecf536f12ffadb618f4ba09fdeed13 /build | |
parent | 23ff49d8529f2fdf363885f28f195a09b9fa87e5 (diff) | |
download | vaadin-framework-747fa23f1d3db902d065a9d8b0b2ec716965cf43.tar.gz vaadin-framework-747fa23f1d3db902d065a9d8b0b2ec716965cf43.zip |
Merge from versions/5.3 to versions/6.0:
Merged [7165]: Fixed gwt link creation in the 'night' target (for TeamCity building).
Merged [7175]: Added 'night' target installation with SCP (for TeamCity building).
Merged [7176]: Fixed TeamCity build name in the 'night' (for TeamCity building).
Merged [7177]: Fixed an error in TeamCity build name in the 'night' (for TeamCity building).
Merged [7178]: Fixed another error in TeamCity build name in the 'night' (for TeamCity building).
Merged [7179]: Use 'c' in build number to signify changeset instead of a running build counter (for TeamCity building).
svn changeset:7180/svn branch:6.0
Diffstat (limited to 'build')
-rw-r--r-- | build/build.xml | 65 |
1 files changed, 45 insertions, 20 deletions
diff --git a/build/build.xml b/build/build.xml index 1935364d6b..9e5db20b68 100644 --- a/build/build.xml +++ b/build/build.xml @@ -50,7 +50,7 @@ <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 name="nightly" depends="clean-all, nightly-init, package-init, init, libs, nightly-install"> </target> <!-- internal tests for packaging --> @@ -549,7 +549,7 @@ </if> </target> - <target name="build" depends="demo" description="Build package required files, without packing them."> + <target name="build" depends="libs, compile-client-side, demo" description="Build package required files, without packing them."> </target> <!-- Copy and preprocess sources for packaging @@ -875,7 +875,9 @@ <target name="widgetset-colorpicker" depends="init-nonpackage, compile-widgetset-colorpicker"> </target> - <target name="libs" depends="compile-java, webcontent, compile-client-side"> + <!-- Compile the Toolkit library JAR. --> + <!-- Only need the default widgetset for this. --> + <target name="libs" depends="compile-java, webcontent, compile-widgetset-default"> <echo>Creating libs (server-side) ${lib-jar-name}</echo> <!-- Create Toolkit JAR --> <jar jarfile="${output-dir}/WebContent/WEB-INF/lib/${lib-jar-name}" compress="true"> @@ -1366,43 +1368,66 @@ <!-- Nightly build. --> <!-- ================================================================== --> - <!-- Initialize a nightly build. --> - <target name="nightly-init" depends=""> - - <!-- Mandatory parameters. --> - <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."/> - - <!-- Optional parameters. --> - <property name="build.tag" value="dev"/> - + <target name="gwt-symlink"> <!-- 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"/> + <available file="build/gwt" property="gwt.link.available"/> <if> <not> <isset property="gwt.link.available"/> </not> <then> - <echo>${gwt.link.available}</echo> + <echo>Creating symlink to GWT installation directory.</echo> <symlink link="gwt" resource="${gwt.link.target}" failonerror="false"/> </then> + <else> + <echo>Symlink to GWT installation directory already exists</echo> + </else> </if> + </target> + + <!-- Initialize a nightly build. --> + <target name="nightly-init" depends="gwt-symlink"> + + <!-- Mandatory parameters. --> + <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."/> + + <!-- Optional parameters. --> + <property name="build.tag" value="dev"/> + + <echo>Minor version: ${version.minor}</echo> + <echo>Build number: ${build.number}</echo> + <echo>Build tag: ${build.tag}</echo> + <echo>Publish target: ${nightly.publish}</echo> + <!-- Set build number. --> <tstamp> <format property="nightly.date" pattern="yyyyMMdd"/> </tstamp> - <property name="version" value="${version.minor}-${build.tag}-${nightly.date}-b${build.number}"/> - <echo>##teamcity[buildNumber '${version}']</echo> + <property name="version" value="${version.minor}-${build.tag}-${nightly.date}-c${build.number}"/> + + <!-- Tell TeamCity the build name. Have to do it this way, because --> + <!-- this script needs to get the plain build number as a parameter. --> + <echo>##teamcity[buildNumber '${version.minor}-c${build.number}']</echo> </target> <!-- Copies the nightly build results to the download server. --> - <target name="nightly-install" depends=""> - <echo>Installing to ${nightly.publish}</echo> + <target name="nightly-install"> + <echo>Installing ${output-dir}/WebContent/${lib-jar-name} to ${nightly.publish}</echo> + <echo>Hopefully you have permissions for the copy operation with SSH.</echo> + + <exec executable="scp" searchpath="true" resultproperty="nightly.install.scp.result"> + <arg value="-B"/> + <arg value="${output-dir}/WebContent/${lib-jar-name}"/> + <arg value="${nightly.publish}"/> + </exec> + + <echo>Result: ${nightly.install.scp.result}</echo> </target> </project> |