@Component @Named(value="lesscss") @Singleton public class LessCompilerScriptService extends Object implements org.xwiki.script.service.ScriptService
Constructor and Description |
---|
LessCompilerScriptService() |
Modifier and Type | Method and Description |
---|---|
boolean |
clearCache()
Remove every generated files from the XWiki cache.
|
boolean |
clearCacheFromColorTheme(String colorTheme)
Remove every generated files corresponding to a color theme.
|
boolean |
clearCacheFromSkin(String skin)
Remove every generated files corresponding to a filesystem skin.
|
String |
compileSkinFile(String fileName)
Compile a LESS file located in the "less" directory of the current skin directory.
|
String |
compileSkinFile(String fileName,
boolean force)
Compile a LESS file located in the "less" directory of the current skin directory.
|
String |
compileSkinFile(String fileName,
String skin)
Compile a LESS file located in the "less" directory of the specified skin directory.
|
String |
compileSkinFile(String fileName,
String skin,
boolean force)
Compile a LESS file located in the "less" directory of the specified skin directory.
|
org.xwiki.lesscss.internal.colortheme.ColorTheme |
getColorThemeFromSkinFile(String filename)
Return a color theme from a LESS file located in the "less" directory of the current skin.
|
org.xwiki.lesscss.internal.colortheme.ColorTheme |
getColorThemeFromSkinFile(String filename,
String skin)
Return a color theme from a LESS file located in the "less" directory of the specified skin.
|
public String compileSkinFile(String fileName)
fileName
- name of the file to compilepublic String compileSkinFile(String fileName, boolean force)
fileName
- name of the file to compileforce
- force the computation, even if the output is already in the cache (not recommended)public String compileSkinFile(String fileName, String skin)
fileName
- name of the file to compileskin
- name of the skin where the LESS file is locatedpublic String compileSkinFile(String fileName, String skin, boolean force)
fileName
- name of the file to compileskin
- name of the skin where the LESS file is locatedforce
- force the computation, even if the output is already in the cache (not recommended)public org.xwiki.lesscss.internal.colortheme.ColorTheme getColorThemeFromSkinFile(String filename)
filename
- name of the LESS filepublic org.xwiki.lesscss.internal.colortheme.ColorTheme getColorThemeFromSkinFile(String filename, String skin)
filename
- name of the LESS fileskin
- name of the skin where the LESS file is locatedpublic boolean clearCache()
public boolean clearCacheFromColorTheme(String colorTheme)
colorTheme
- fullname of the color themepublic boolean clearCacheFromSkin(String skin)
skin
- name of the filesystem skinCopyright © 2004–2021 XWiki. All rights reserved.