summaryrefslogtreecommitdiffstats
path: root/buildhelpers
diff options
context:
space:
mode:
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");