summaryrefslogtreecommitdiffstats
path: root/build/build.xml
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-04-30 07:06:31 +0000
committerArtur Signell <artur.signell@itmill.com>2010-04-30 07:06:31 +0000
commitdf0e0695dc84ff8576f6429ec668149d22724b9c (patch)
tree6c11bf654477b90b1b75be9e6ad1567d321e2dfe /build/build.xml
parent5725d25e336d77ee500ef6184b4b40d84e6df197 (diff)
downloadvaadin-framework-df0e0695dc84ff8576f6429ec668149d22724b9c.tar.gz
vaadin-framework-df0e0695dc84ff8576f6429ec668149d22724b9c.zip
Target for publishing demo of nightly builds
svn changeset:12939/svn branch:6.3
Diffstat (limited to 'build/build.xml')
-rw-r--r--build/build.xml24
1 files changed, 23 insertions, 1 deletions
diff --git a/build/build.xml b/build/build.xml
index f528a32264..b6c701469a 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -1053,7 +1053,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">
+ <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>