aboutsummaryrefslogtreecommitdiffstats
path: root/buildhelpers
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2014-06-30 10:55:14 +0300
committerVaadin Code Review <review@vaadin.com>2014-06-30 08:22:34 +0000
commit774edfb044e604d61ec42fbc0156c09ae92479ef (patch)
treea77dd619403023002c8e2a63402e78f07ab25472 /buildhelpers
parent44beb35b595472001532bb47c5d7f856e7810cdb (diff)
downloadvaadin-framework-774edfb044e604d61ec42fbc0156c09ae92479ef.tar.gz
vaadin-framework-774edfb044e604d61ec42fbc0156c09ae92479ef.zip
Compile valo with Vaadin Sass compiler (#14120)
Change-Id: I79ddfee4fd97c545f2bd502655560ff4cbe600a4
Diffstat (limited to 'buildhelpers')
-rw-r--r--buildhelpers/src/com/vaadin/buildhelpers/CompileTheme.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/buildhelpers/src/com/vaadin/buildhelpers/CompileTheme.java b/buildhelpers/src/com/vaadin/buildhelpers/CompileTheme.java
index 0fa4a7e8ab..d97025bdb6 100644
--- a/buildhelpers/src/com/vaadin/buildhelpers/CompileTheme.java
+++ b/buildhelpers/src/com/vaadin/buildhelpers/CompileTheme.java
@@ -73,9 +73,14 @@ public class CompileTheme {
}
// Legacy theme w/o .themename{} wrapping
try {
- processSassTheme(themeFolder, themeName, "legacy-styles", version);
- System.out.println("Compiling theme " + themeName
- + " legacy-styles successful");
+ String legacyFile = themeFolder + File.separator + themeName
+ + File.separator + "legacy-styles.scss";
+ if (new File(legacyFile).exists()) {
+ processSassTheme(themeFolder, themeName, "legacy-styles",
+ version);
+ System.out.println("Compiling theme " + themeName
+ + " legacy-styles successful");
+ }
} catch (Exception e) {
System.err.println("Compiling theme " + themeName
+ " legacy-styles failed");