From 553a06a861be56aab3a88f186a3d138ad1f4267a Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Mon, 18 May 2009 13:21:41 +0000 Subject: [PATCH] Update theme compilation script. svn changeset:7862/svn branch:6.0 --- .../com/vaadin/buildhelpers/CompileDefaultTheme.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/buildhelpers/com/vaadin/buildhelpers/CompileDefaultTheme.java b/build/buildhelpers/com/vaadin/buildhelpers/CompileDefaultTheme.java index 63bae7f228..9e0455e474 100644 --- a/build/buildhelpers/com/vaadin/buildhelpers/CompileDefaultTheme.java +++ b/build/buildhelpers/com/vaadin/buildhelpers/CompileDefaultTheme.java @@ -117,7 +117,7 @@ public class CompileDefaultTheme { + combinedCss.toString().length() + " bytes)"); if (useSmartSprites) { - createSprites(combinedCss); + createSprites(themeNames[themeNames.length - 1]); System.out.println("Used SmartSprites to create sprites"); File oldCss = new File(stylesCssName); oldCss.delete(); @@ -131,12 +131,12 @@ public class CompileDefaultTheme { } } - private static void createSprites(StringBuffer combinedCss) + private static void createSprites(String themeName) throws FileNotFoundException, IOException { String[] parameters = new String[] { "--sprite-png-depth", "AUTO", "--sprite-png-ie6", "--css-file-suffix", "-sprite", "--css-file-encoding", "UTF-8", "--root-dir-path", - "WebContent/VAADIN/themes/reindeer", "--log-level", "WARN" }; + THEME_DIR + themeName, "--log-level", "WARN" }; org.carrot2.labs.smartsprites.SmartSprites.main(parameters); -- 2.39.5