]> source.dussan.org Git - vaadin-framework.git/commitdiff
Provide compressed vaadinBootstrap.js (#18329)
authorArtur Signell <artur@vaadin.com>
Tue, 23 Jun 2015 20:10:07 +0000 (23:10 +0300)
committerArtur Signell <artur@vaadin.com>
Tue, 23 Jun 2015 20:10:07 +0000 (23:10 +0300)
Change-Id: Ibc8efdf8d9d5ace8f6db7b19e54978b35458a79f

server/build.xml

index e88b53d937f5b1a355589c27794e8145974062c3..4bb2bde7306244f7ebdf937f703c0ed6a28a683e 100644 (file)
         <fileset dir="${vaadin.basedir}/WebContent">
             <include name="VAADIN/vaadinBootstrap.js" />
         </fileset>
+        <fileset dir="${result.dir}">
+            <include name="VAADIN/*" />
+        </fileset>
     </union>
 
-    <target name="jar">
+    <target name="compress-files">
+        <mkdir dir="${result.dir}/VAADIN" />
+        <gzip src="${vaadin.basedir}/WebContent/VAADIN/vaadinBootstrap.js"
+            destfile="${result.dir}/VAADIN/vaadinBootstrap.js.gz" />
+    </target>
+    <target name="jar" depends="compress-files">
         <property name="server.osgi.import"
             value="javax.servlet;version=&quot;2.4.0&quot;,javax.servlet.http;version=&quot;2.4.0&quot;,javax.validation;version=&quot;1.0.0.GA&quot;;resolution:=optional,org.jsoup;version=&quot;1.6.3&quot;,org.jsoup.parser;version=&quot;1.6.3&quot;,org.jsoup.nodes;version=&quot;1.6.3&quot;,org.jsoup.helper;version=&quot;1.6.3&quot;,org.jsoup.safety;version=&quot;1.6.3&quot;,org.jsoup.select;version=&quot;1.6.3&quot;" />
         <property name="server.osgi.require"