aboutsummaryrefslogtreecommitdiffstats
path: root/push
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-10-11 16:28:32 +0300
committerVaadin Code Review <review@vaadin.com>2013-10-14 17:18:51 +0000
commitc29ca5ea626b7d2a219bf32bcd0c1b4bf5258018 (patch)
treeef394fe86e61b3c903d0f78baa771a262ba4c77f /push
parent25fc2f2f1af0b6bf52053f0ca6d11d31c5e7453a (diff)
downloadvaadin-framework-c29ca5ea626b7d2a219bf32bcd0c1b4bf5258018.tar.gz
vaadin-framework-c29ca5ea626b7d2a219bf32bcd0c1b4bf5258018.zip
Update to atmosphere javascript 2.0.3-vaadin1 (#12241, #12127)
Build vaadinPush.js from the released version instead of having a separate javascript version in the project Change-Id: I37aac284216c8ec6efd03c242e639e88854f11fd
Diffstat (limited to 'push')
-rw-r--r--push/build.xml31
-rw-r--r--push/ivy.xml16
2 files changed, 37 insertions, 10 deletions
diff --git a/push/build.xml b/push/build.xml
index 1cbe23d75b..9e3c0c1414 100644
--- a/push/build.xml
+++ b/push/build.xml
@@ -10,12 +10,16 @@
<property name="module.name" value="vaadin-push" />
<property name="module.symbolic" value="com.vaadin.push" />
<property name="result.dir" location="result" />
+ <property name="temp.dir" location="${result.dir}/temp" />
+ <property name="jquery.unpack" location="${temp.dir}/jquery" />
<property name="vaadinPush.js" location="${result.dir}/js/VAADIN/vaadinPush.js" />
<property name="vaadinPush.debug.js" location="${result.dir}/js/VAADIN/vaadinPush.debug.js" />
- <!-- Keep the version number in sync with ivy.xml, server/src/com/vaadin/server/Constants.java and jquery.atmosphere.js -->
- <property name="atmosphere.version" value="1.0.14.vaadin4" />
- <property name="jquery.version" value="1.7.2" />
+ <!-- Keep the version number in sync with ivy.xml, server/src/com/vaadin/server/Constants.java -->
+ <property name="atmosphere.runtime.version" value="1.0.14.vaadin4" />
+ <!-- Keep the version number in sync with ivy.xml -->
+ <property name="atmosphere.js.version" value="2.0.3-vaadin1" />
+ <property name="jquery.version" value="1.9.0" />
<path id="classpath.compile.custom" />
@@ -28,9 +32,24 @@
<target name="vaadinPush.js">
<mkdir dir="${result.dir}/js/VAADIN" />
+ <ivy:resolve file="ivy.xml" conf="push.js" />
+ <ivy:cachepath pathid="atmosphere.jquery.deps" conf="push.js" />
+
+ <copy todir="${temp.dir}" flatten="true">
+ <path refid="atmosphere.jquery.deps" />
+ </copy>
+
+ <!-- Unzip to temp dir -->
+ <unzip src="${temp.dir}/jquery-${atmosphere.js.version}.war" dest="${jquery.unpack}">
+ <patternset>
+ <include name="**/jquery.atmosphere.js" />
+ <include name="**/jquery-${jquery.version}.js" />
+ </patternset>
+ <mapper type="flatten" />
+ </unzip>
+ <loadfile srcfile="${jquery.unpack}/jquery-${jquery.version}.js" property="jquery.js.contents" />
+ <loadfile srcfile="${jquery.unpack}/jquery.atmosphere.js" property="jquery.atmosphere.js.contents" />
- <loadfile srcfile="${vaadin.basedir}/WebContent/VAADIN/jquery-${jquery.version}.js" property="jquery.js.contents" />
- <loadfile srcfile="${vaadin.basedir}/WebContent/VAADIN/jquery.atmosphere.js" property="jquery.atmosphere.js.contents" />
<loadfile srcfile="${vaadin.basedir}/WebContent/VAADIN/vaadinPush.js.tpl" property="vaadinPush.js.contents">
<filterchain>
<replacetokens begintoken="@" endtoken="@">
@@ -55,7 +74,7 @@
<target name="jar" depends="vaadinPush.js">
<antcall target="common.jar">
- <param name="require-bundle" value="com.vaadin.external.atmosphere.atmosphere-runtime;bundle-version=&quot;${atmosphere.version}&quot;;visibility:=reexport" />
+ <param name="require-bundle" value="com.vaadin.external.atmosphere.atmosphere-runtime;bundle-version=&quot;${atmosphere.runtime.version}&quot;;visibility:=reexport" />
<reference torefid="extra.jar.includes" refid="jar.includes" />
</antcall>
</target>
diff --git a/push/ivy.xml b/push/ivy.xml
index 5a2a24fb1f..1f76224190 100644
--- a/push/ivy.xml
+++ b/push/ivy.xml
@@ -1,4 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE ivy-module [
+<!-- Keep the version numbers in sync with build.xml -->
+ <!ENTITY atmosphere.runtime.version "1.0.14.vaadin4">
+ <!ENTITY atmosphere.js.version "2.0.3-vaadin1">
+]>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
@@ -11,6 +16,8 @@
<conf name="build-provided" />
<conf name="ide" visibility="private" />
<conf name="test" visibility="private" />
+ <!-- Used for building push.js only -->
+ <conf name="push.js" visibility="private" />
</configurations>
<publications>
<artifact type="jar" ext="jar" />
@@ -26,10 +33,11 @@
rev="2.4" conf="build-provided,ide,test -> default" />
<!-- Atmosphere -->
- <!-- Keep the version number in sync with build.xml and other locations listed in that file -->
- <dependency org="com.vaadin.external.atmosphere" name="atmosphere-runtime"
- rev="1.0.14.vaadin4" conf="build,ide,test -> default">
- </dependency>
+ <dependency org="com.vaadin.external.atmosphere"
+ name="atmosphere-runtime" rev="&atmosphere.runtime.version;"
+ conf="build,ide,test -> default" />
+ <dependency org="com.vaadin.external.atmosphere.client"
+ name="jquery" rev="&atmosphere.js.version;" conf="push.js -> default" />
</dependencies>
</ivy-module>