diff options
author | Artur Signell <artur@vaadin.com> | 2012-09-10 16:01:45 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-10 16:31:07 +0300 |
commit | e30db6484b882e3115da871f582f2cdb1320e763 (patch) | |
tree | 910c22f089679f1d7cd7f5bdfb0d6cef9cba8673 /theme-compiler/src | |
parent | 7e89dcb34ed5864e0ae3f14ffb60a2365503aff1 (diff) | |
download | vaadin-framework-e30db6484b882e3115da871f582f2cdb1320e763.tar.gz vaadin-framework-e30db6484b882e3115da871f582f2cdb1320e763.zip |
Use correct version in precompiled themes (#9528)
Diffstat (limited to 'theme-compiler/src')
-rw-r--r-- | theme-compiler/src/com/vaadin/buildhelpers/CompileTheme.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/theme-compiler/src/com/vaadin/buildhelpers/CompileTheme.java b/theme-compiler/src/com/vaadin/buildhelpers/CompileTheme.java index c0bfb9aa7f..d2c64602ab 100644 --- a/theme-compiler/src/com/vaadin/buildhelpers/CompileTheme.java +++ b/theme-compiler/src/com/vaadin/buildhelpers/CompileTheme.java @@ -14,7 +14,6 @@ import org.apache.commons.cli.ParseException; import org.apache.commons.cli.PosixParser; import com.vaadin.sass.ScssStylesheet; -import com.vaadin.shared.Version; /** * Helper to combine css divided into separate per component dirs into one to @@ -30,6 +29,8 @@ public class CompileTheme { public static void main(String[] args) throws IOException, ParseException { Options options = new Options(); options.addOption("t", "theme", true, "the theme to compile"); + options.addOption("v", "theme-version", true, + "the version to add to the compiled theme"); options.addOption("f", "theme-folder", true, "the folder containing the theme"); options.addOption("s", "sprites", true, "use smartsprites"); @@ -43,11 +44,11 @@ public class CompileTheme { } String themeName = params.getOptionValue("theme"); String themeFolder = params.getOptionValue("theme-folder"); + String themeVersion = params.getOptionValue("theme-version"); boolean useSprites = params.hasOption("sprites"); - String version = Version.getFullVersion(); try { - processSassTheme(themeFolder, themeName, useSprites, version); + processSassTheme(themeFolder, themeName, useSprites, themeVersion); System.out.println("Compiling theme " + themeName + " successful"); } catch (Exception e) { System.err.println("Compiling theme " + themeName + " failed"); |