diff options
author | Artur Signell <artur@vaadin.com> | 2013-01-02 08:00:58 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-01-02 08:00:58 +0000 |
commit | 7ed4e5e6ff8ca08ab50225ac5c33bed59a226217 (patch) | |
tree | e1f55b71d92ca01188038bc266a7a905200b2fdc | |
parent | 189db8f5f0bde62b28234e1d500836be393c443e (diff) | |
parent | 0b2e1caca92f64c6ac332bfbafc1846323726c91 (diff) | |
download | vaadin-framework-7ed4e5e6ff8ca08ab50225ac5c33bed59a226217.tar.gz vaadin-framework-7ed4e5e6ff8ca08ab50225ac5c33bed59a226217.zip |
Merge "Prevents scss files leaking out into the web content folder when an exception is thrown during linking (#10594)"
-rw-r--r-- | client-compiler/src/com/vaadin/sass/linker/SassLinker.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client-compiler/src/com/vaadin/sass/linker/SassLinker.java b/client-compiler/src/com/vaadin/sass/linker/SassLinker.java index 6aad66fc53..88178ba1d0 100644 --- a/client-compiler/src/com/vaadin/sass/linker/SassLinker.java +++ b/client-compiler/src/com/vaadin/sass/linker/SassLinker.java @@ -65,6 +65,10 @@ public class SassLinker extends AbstractLinker { // Create the temporary files. String partialPath = resource.getPartialPath(); if (partialPath.endsWith(".scss")) { + // In my opinion, the SCSS file does not need to be + // output to the web content folder, as they can't + // be used there + toReturn.remove(resource); String fileName = partialPath; File path = tempFolder; @@ -89,11 +93,6 @@ public class SassLinker extends AbstractLinker { // Store the file info for the compilation scssFiles.add(new FileInfo(tempfile, partialPath)); - - // In my opinion, the SCSS file does not need to be - // output to the web content folder, as they can't - // be used there - toReturn.remove(resource); } else { logger.log(TreeLogger.WARN, "Duplicate file " + tempfile.getPath()); |