summaryrefslogtreecommitdiffstats
path: root/all/build.xml
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-06 11:21:25 +0300
committerArtur Signell <artur@vaadin.com>2012-09-09 11:23:38 +0300
commita9706c79dfdbb3f9f6a9edcc84d09f375dacfd41 (patch)
tree50b2251c9a5aeaf21b49dbd1d21110e4b02b04c7 /all/build.xml
parent853f5898545593f62b44e4018835c0a06d850035 (diff)
downloadvaadin-framework-a9706c79dfdbb3f9f6a9edcc84d09f375dacfd41.tar.gz
vaadin-framework-a9706c79dfdbb3f9f6a9edcc84d09f375dacfd41.zip
Build a zip file containing all jars + dependencies (#9299)
Diffstat (limited to 'all/build.xml')
-rw-r--r--all/build.xml54
1 files changed, 54 insertions, 0 deletions
diff --git a/all/build.xml b/all/build.xml
new file mode 100644
index 0000000000..4e0b2293a9
--- /dev/null
+++ b/all/build.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0"?>
+
+<project name="vaadin-all" basedir="." default="publish-local" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:antcontrib="antlib:net.sf.antcontrib">
+ <description>
+ Compiles a zip containing all jars + dependencies
+ </description>
+ <include file="../common.xml" as="common" />
+ <include file="../build.xml" as="vaadin" />
+
+ <!-- global properties -->
+ <property name="module.name" value="vaadin" />
+ <property name="result.dir" value="result" />
+ <property name="temp.dir" location="${result.dir}/temp" />
+ <property name="zip.file" location="${result.dir}/lib/vaadin-${vaadin.version}.zip" />
+
+ <target name="fetch.module.and.dependencies">
+ <fail unless="module" message="No 'module' parameter given" />
+
+ <ivy:cachepath pathid="module.and.deps" inline="true" organisation="com.vaadin" module="vaadin-${module}" revision="${vaadin.version}" />
+ <copy todir="${temp.dir}" flatten="true">
+ <path refid="module.and.deps" />
+ </copy>
+ </target>
+
+ <target name="zip">
+ <delete dir="${temp.dir}" />
+ <antcontrib:foreach list="${modules.to.publish}" target="fetch.module.and.dependencies" param="module" />
+ <!-- All jars are now in temp.dir. Still need to separate vaadin and deps -->
+ <move todir="${temp.dir}/deps">
+ <fileset dir="${temp.dir}">
+ <exclude name="vaadin-*-${vaadin.version}.*" />
+ <exclude name="vaadin-*-${vaadin.version}-*.*" />
+ </fileset>
+ </move>
+ <zip destfile="${zip.file}">
+ <fileset dir="${temp.dir}">
+ </fileset>
+ <fileset refid="common.files.for.all.jars" />
+ </zip>
+ </target>
+
+ <target name="publish-local" depends="zip">
+ <antcall target="common.publish-local" />
+ </target>
+
+ <target name="clean">
+ <antcall target="common.clean" />
+ </target>
+
+ <target name="tests">
+ <!-- No tests for this zip.. -->
+ </target>
+
+</project> \ No newline at end of file