diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-05-18 13:21:41 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-05-18 13:21:41 +0000 |
commit | 553a06a861be56aab3a88f186a3d138ad1f4267a (patch) | |
tree | c06f94643e7e7ae0b7b58374566347da66a1f900 /build/buildhelpers/com | |
parent | 57832e5dbd8fce2f5db9549026a749605a878a3d (diff) | |
download | vaadin-framework-553a06a861be56aab3a88f186a3d138ad1f4267a.tar.gz vaadin-framework-553a06a861be56aab3a88f186a3d138ad1f4267a.zip |
Update theme compilation script.
svn changeset:7862/svn branch:6.0
Diffstat (limited to 'build/buildhelpers/com')
-rw-r--r-- | build/buildhelpers/com/vaadin/buildhelpers/CompileDefaultTheme.java | 6 |
1 files 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); |