]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix themes build script not to overwrite all theme files on every iteration. (#14575)
authorSauli Tähkäpää <sauli@vaadin.com>
Tue, 16 Sep 2014 07:09:23 +0000 (10:09 +0300)
committerVaadin Code Review <review@vaadin.com>
Fri, 19 Sep 2014 10:24:11 +0000 (10:24 +0000)
Change-Id: I58d19f7f5c9e45068b6cc8a7356e41d5d5bce5b6

themes/build.xml

index c36e01cda61a20666a9540adbcaf1d78cf91df06..4a95c043fc88d87c4e2bf35a3ffd7085301a73f6 100644 (file)
 
     <target name="copy-theme">
         <fail unless="theme" message="You must give the theme name to copy n the 'theme' parameter" />
-        <property name="theme.source.dir" location="../WebContent/VAADIN/themes" />
+        <property name="theme.source.dir" location="../WebContent/VAADIN/themes/${theme}/" />
 
-        <copy todir="${theme.result.dir}">
+        <copy todir="${theme.result.dir}/${theme}">
             <fileset dir="${theme.source.dir}">
-                <include name="${theme}/**/*.scss" />
+                <include name="**/*.scss" />
             </fileset>
             <filterset refid="filter-vaadin.version" />
         </copy>
-        <copy todir="${theme.result.dir}">
+        <copy todir="${theme.result.dir}/${theme}">
             <fileset dir="${theme.source.dir}">
-                <exclude name="${theme}/**/*.scss" />
+                <exclude name="**/*.scss" />
             </fileset>
         </copy>
     </target>