diff options
-rw-r--r-- | common.xml | 10 | ||||
-rw-r--r-- | server/build.xml | 3 | ||||
-rw-r--r-- | shared/build.xml | 3 |
3 files changed, 16 insertions, 0 deletions
diff --git a/common.xml b/common.xml index bd18e7d522..4b86bfaa33 100644 --- a/common.xml +++ b/common.xml @@ -218,6 +218,16 @@ </then> </antcontrib:if> <antcontrib:if> + <isset property="require-bundle" /> + <then> + <jar file="${result.jar}" update="true"> + <manifest> + <attribute name="Require-Bundle" value="${require-bundle}" /> + </manifest> + </jar> + </then> + </antcontrib:if> + <antcontrib:if> <isset property="export-package" /> <then> <jar file="${result.jar}" update="true"> diff --git a/server/build.xml b/server/build.xml index bf6a3d02e6..50311a18d9 100644 --- a/server/build.xml +++ b/server/build.xml @@ -22,7 +22,10 @@ </union> <target name="jar"> + <property name="server.osgi.import" value="org.jsoup;version="1.6.3""/> <antcall target="common.jar"> + <param name="require-bundle" value="com.vaadin.vaadin-shared;version="${vaadin.version}""/> + <param name="import-package" value="javax.servlet;version="2.4.0",${server.osgi.import}" /> <reference torefid="extra.jar.includes" refid="jar.includes" /> </antcall> </target> diff --git a/shared/build.xml b/shared/build.xml index d458b57d71..71276a6b19 100644 --- a/shared/build.xml +++ b/shared/build.xml @@ -16,7 +16,10 @@ <target name="jar"> + <property name="shared.osgi.import" value="org.json;version="20080701"" /> <antcall target="common.jar"> + <param name="require-bundle" value="com.vaadin.shared.deps;version="1.0.0""/> + <param name="import-package" value="${shared.osgi.import}" /> <reference refid="shared.gwt.includes" torefid="extra.jar.includes" /> </antcall> </target> |