summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-04-30 07:58:21 +0000
committerArtur Signell <artur.signell@itmill.com>2010-04-30 07:58:21 +0000
commit7c061dfe7ce72a94e03da5a098edf84c2e270434 (patch)
tree416023e16307df541b0e2cd2f9e1fcd264e53572 /build
parentb4d2ee856f2631afbfd662d18decb6643d6196f3 (diff)
downloadvaadin-framework-7c061dfe7ce72a94e03da5a098edf84c2e270434.tar.gz
vaadin-framework-7c061dfe7ce72a94e03da5a098edf84c2e270434.zip
Merged build script changes for nightly demo deployment
svn changeset:12944/svn branch:6.4
Diffstat (limited to 'build')
-rw-r--r--build/build.xml25
1 files changed, 24 insertions, 1 deletions
diff --git a/build/build.xml b/build/build.xml
index 8aff2ab906..201f3ad565 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -1015,6 +1015,7 @@
<echo>Build number: ${build.number}</echo>
<echo>Build tag: ${build.tag}</echo>
<echo>Publish target: ${nightly.publish}</echo>
+ <echo>Demo publish target: ${nightly.demo.publish}</echo>
<!-- Set build number. -->
<tstamp>
@@ -1053,7 +1054,29 @@
<echo>Result: ${nightly.install.scp.result}</echo>
</target>
- <target name="nightly-publish" depends="nightly-teamcity-publish, nightly-download-publish">
+ <!-- Copies the nightly build artifacts to the download server. -->
+ <target name="nightly-demo-publish" if="nightly.demo.publish" depends="internal-package-war">
+ <fail unless="version.major" message="Major version must be defined in version.major"/>
+ <fail unless="version.minor" message="Major version must be defined in version.minor"/>
+
+
+ <!-- Publish to the demo server. -->
+ <property name="src" value="${result-path}/${product-file}-demo-${version.full}.war"/>
+ <property name="target" value="${nightly.demo.publish}/${version.major}.${version.minor}-${build.tag}.war"/>
+
+ <echo>Installing ${src} to ${target}</echo>
+
+ <!-- Copy the linux installation package and the JAR. -->
+ <exec executable="scp" searchpath="true" resultproperty="nightly.demo.install.scp.result">
+ <arg value="-B"/>
+ <arg value="${src}"/>
+ <arg value="${target}"/>
+ </exec>
+
+ <echo>Result: ${nightly.install.scp.result}</echo>
+ </target>
+
+ <target name="nightly-publish" depends="nightly-teamcity-publish, nightly-download-publish, nightly-demo-publish">
</target>