diff options
Diffstat (limited to 'all')
-rw-r--r-- | all/README.TXT | 13 | ||||
-rw-r--r-- | all/build.xml | 68 | ||||
-rw-r--r-- | all/ivy.xml | 37 |
3 files changed, 118 insertions, 0 deletions
diff --git a/all/README.TXT b/all/README.TXT new file mode 100644 index 0000000000..55685ac8b0 --- /dev/null +++ b/all/README.TXT @@ -0,0 +1,13 @@ +This Vaadin zip contains all the jars of the Vaadin Framework. Additionally all dependencies are provided in the lib folder. + +To use in a web project: +1. Copy all vaadin-* files except vaadin-client and vaadin-client-compiler to WEB-INF/lib in your project +2. Copy vaadin-client and vaadin-client-compiler to a lib folder which is on your classpath but will not be deployed. These files are only needed when compiling a module (widget set) to Javascript. + +If you are using Eclipse and a standard WTP (Dynamic Web Project or Vaadin Project) you can do: +1. As above +2. Create a /lib folder, copy the files there and right click the lib folder and select "Build Path" -> "Add to Build Path". +Once this is done, the "Compile widgetset" button provided by the Vaadin Plug-in for Eclipse will work correctly. + + + diff --git a/all/build.xml b/all/build.xml new file mode 100644 index 0000000000..4281a63b2f --- /dev/null +++ b/all/build.xml @@ -0,0 +1,68 @@ +<?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-all" /> + <property name="result.dir" value="result" /> + <property name="temp.dir" location="${result.dir}/temp" /> + <property name="zip.file" location="${result.dir}/lib/${module.name}-${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.to.maven}" 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}/lib"> + <fileset dir="${temp.dir}"> + <exclude name="vaadin-*-${vaadin.version}.*" /> + <exclude name="vaadin-*-${vaadin.version}-*.*" /> + </fileset> + </move> + + <zip destfile="${zip.file}"> + <fileset dir="${temp.dir}"> + <!-- Avoid conflicts with servlet and portlet API. They are provided by the container --> + <exclude name="**/servlet-api*" /> + <exclude name="**/portlet-api*" /> + <!-- Buildhelpers should not even get here ... --> + <exclude name="*buildhelpers*" /> + <!-- Zip users should not need javadoc, sources or pom files --> + <exclude name="*.pom" /> + <exclude name="*-javadoc.jar" /> + <exclude name="*-sources.jar" /> + + </fileset> + <fileset refid="common.files.for.all.jars" /> + <fileset dir="${result.dir}/.."> + <include name="README.TXT"/> + </fileset> + </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 diff --git a/all/ivy.xml b/all/ivy.xml new file mode 100644 index 0000000000..4450eb168f --- /dev/null +++ b/all/ivy.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ivy-module version="2.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" + xmlns:m="http://ant.apache.org/ivy/maven"> + + <info organisation="com.vaadin" module="vaadin-all" revision="${vaadin.version}" /> + + <configurations> + <conf name="build" /> + </configurations> + <publications> + <artifact type="zip" ext="zip" /> + </publications> + <dependencies defaultconf="build"> + <!-- API DEPENDENCIES --> + + <!-- LIBRARY DEPENDENCIES (compile time) --> + <!-- Project modules --> + <dependency org="com.vaadin" name="vaadin-shared" + rev="${vaadin.version}"/> + <dependency org="com.vaadin" name="vaadin-server" + rev="${vaadin.version}"/> + <dependency org="com.vaadin" name="vaadin-client" + rev="${vaadin.version}"/> + <dependency org="com.vaadin" name="vaadin-client-compiler" + rev="${vaadin.version}"/> + <dependency org="com.vaadin" name="vaadin-theme-compiler" + rev="${vaadin.version}"/> + <dependency org="com.vaadin" name="vaadin-themes-compiled" + rev="${vaadin.version}"/> + <dependency org="com.vaadin" name="vaadin-client-compiled" + rev="${vaadin.version}"/> + + </dependencies> + +</ivy-module> |