This repository was archived by the owner on Jan 9, 2019. It is now read-only.

Description
I want to use the "--modify-var" less option in my code, but i m not able to use it. It always give the message: "invalid option modify-var". Same happens for "--global-var" less option. Below is the code snippet
...
List list = new ArrayList();
list.add("--modify-var="base=#400854"");
LessCompiler lesscompiler = new LessCompiler();
lesscompiler.setOptions(list);
try {
String css = lesscompiler.compile();
...
Less file:
@base: #f938ab;
.box-shadow(@Style, @c) when (iscolor(@c)) {
-webkit-box-shadow: @Style @c;
box-shadow: @Style @c;
}
.box-shadow(@Style, @Alpha: 50%) when (isnumber(@Alpha)) {
.box-shadow(@Style, rgba(0, 0, 0, @Alpha));
}
.box {
color: saturate(@base, 5%);
border-color: lighten(@base, 30%);
div { .box-shadow(0 0 5px, 30%) }
}
Is there no support for these options or am i doing it wrong?