]> source.dussan.org Git - vaadin-framework.git/commitdiff
Target for publishing demo of nightly builds
authorArtur Signell <artur.signell@itmill.com>
Fri, 30 Apr 2010 07:06:31 +0000 (07:06 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 30 Apr 2010 07:06:31 +0000 (07:06 +0000)
svn changeset:12939/svn branch:6.3

build/build.xml

index f528a32264457884ede0fd53b6c65071b5c59599..b6c701469a234ab45ad2c6a9cd7f29388a64dd60 100644 (file)
         <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>