]> source.dussan.org Git - vaadin-framework.git/commitdiff
Update theme compilation script.
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Mon, 18 May 2009 13:21:41 +0000 (13:21 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Mon, 18 May 2009 13:21:41 +0000 (13:21 +0000)
svn changeset:7862/svn branch:6.0

build/buildhelpers/com/vaadin/buildhelpers/CompileDefaultTheme.java

index 63bae7f2280160b637018437c2eee77f1092757b..9e0455e474047cdb7f460c285804b52299a71cf8 100644 (file)
@@ -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);