]> source.dussan.org Git - vaadin-framework.git/commitdiff
Removed unnecessary files from zip (#9299)
authorArtur Signell <artur@vaadin.com>
Thu, 6 Sep 2012 16:08:31 +0000 (19:08 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 9 Sep 2012 08:23:46 +0000 (11:23 +0300)
all/build.xml

index 0ffde57bb420096d882712b06978da6b77ef2817..f69e8a0bb5d018aae10eeb9ed914ae5012a84b5a 100644 (file)
                <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}/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" />
                </zip>