summaryrefslogtreecommitdiffstats
path: root/push/build.xml
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2013-05-13 17:34:16 +0300
committerVaadin Code Review <review@vaadin.com>2013-05-20 10:30:52 +0000
commit2772641acf8f84046e3ac42c8386b65e4f2346f2 (patch)
tree26aa4dda21b5ebaf11f627c0d13db5ea0610788e /push/build.xml
parent73a50dbf002b381411a7c6ca1d6b4e59a93bbe0c (diff)
downloadvaadin-framework-2772641acf8f84046e3ac42c8386b65e4f2346f2.tar.gz
vaadin-framework-2772641acf8f84046e3ac42c8386b65e4f2346f2.zip
OSGi support for vaadin-push (#11691)
* Require atmosphere-runtime in vaadin-push with visibility:=reexport * Require vaadin-push in vaadin-server with resolution:=optional Serving vaadinPush.js from vaadin-push will be handled by Florian's OSGi addon Change-Id: Ida3e1ae95eb17b0114e099d1425db73106aaeead
Diffstat (limited to 'push/build.xml')
-rw-r--r--push/build.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/push/build.xml b/push/build.xml
index 95284e6e37..d06b946dd1 100644
--- a/push/build.xml
+++ b/push/build.xml
@@ -11,6 +11,11 @@
<property name="module.symbolic" value="com.vaadin.push" />
<property name="result.dir" location="result" />
<property name="vaadinPush.js" location="${result.dir}/js/VAADIN/vaadinPush.js" />
+
+ <!-- Keep the version number in sync with ivy.xml -->
+ <property name="atmosphere.version" value="1.0.12" />
+ <property name="jquery.version" value="1.7.2" />
+
<path id="classpath.compile.custom" />
<union id="jar.includes">
@@ -24,7 +29,7 @@
<property name="vaadinPush.js.output" location="${result.dir}/js/VAADIN/vaadinPush.js" />
<property name="vaadinPush.js.combined.output" location="${result.dir}/js/VAADIN/push.combined.js" />
- <loadfile srcfile="${vaadin.basedir}/WebContent/VAADIN/jquery-1.7.2.js" property="jquery.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>
@@ -47,10 +52,8 @@
</target>
<target name="jar" depends="vaadinPush.js">
- <property name="server.osgi.import" value="" />
<antcall target="common.jar">
- <param name="require-bundle" value="" />
- <param name="import-package" value="${server.osgi.import}" />
+ <param name="require-bundle" value="org.atmosphere.atmosphere-runtime;bundle-version=&quot;${atmosphere.version}&quot;;visibility:=reexport" />
<reference torefid="extra.jar.includes" refid="jar.includes" />
</antcall>
</target>