diff --git a/src/main/groovy/org/groocss/GrooCSS.groovy b/src/main/groovy/org/groocss/GrooCSS.groovy index d82d92f..2e1bb0e 100644 --- a/src/main/groovy/org/groocss/GrooCSS.groovy +++ b/src/main/groovy/org/groocss/GrooCSS.groovy @@ -35,6 +35,8 @@ class GrooCSS extends Script implements CurrentKeyFrameHolder { } static void convertFile(Config conf = new Config(), File inf, File out) { convert conf, inf, out } + /** Converts files from CSS to GrooCSS (WARNING: EXPERIMENTAL, DO NOT ASSUME IT WORKS). */ + @Deprecated static void convertFromCSS(File inf, File out) { Translator.convertFromCSS inf, out } diff --git a/src/main/groovy/org/groocss/Translator.groovy b/src/main/groovy/org/groocss/Translator.groovy index 3f80c6b..0540fda 100644 --- a/src/main/groovy/org/groocss/Translator.groovy +++ b/src/main/groovy/org/groocss/Translator.groovy @@ -20,7 +20,7 @@ import groovy.transform.TypeChecked import java.util.regex.Matcher /** - * Translates from/to CSS. + * Translates from/to CSS. WARNING: EXPERIMENTAL, DO NOT ASSUME IT WORKS. */ @TypeChecked class Translator { @@ -28,7 +28,7 @@ class Translator { interface Printer { void println(Object value) } interface Reader { void eachLine(Closure closure) } - /** Converts from CSS to Groocss. */ + /** Converts files from CSS to GrooCSS (WARNING: EXPERIMENTAL, DO NOT ASSUME IT WORKS). */ static void convertFromCSS(File inf, File out) { out.withPrintWriter { pw -> convertFromCSS(new Reader() { void eachLine(Closure closure) { inf.eachLine closure } @@ -37,6 +37,7 @@ class Translator { }) } } + /** Converts files from CSS to GrooCSS (WARNING: EXPERIMENTAL, DO NOT ASSUME IT WORKS). */ static String convertFromCSS(String text) { StringBuilder sb = new StringBuilder() convertFromCSS(new Reader() { @@ -47,7 +48,7 @@ class Translator { sb.toString() } - /** Converts from CSS to Groocss. */ + /** Converts files from CSS to GrooCSS (WARNING: EXPERIMENTAL, DO NOT ASSUME IT WORKS). */ static void convertFromCSS(Reader inf, Printer pw) { def state = [:] inf.eachLine { String originalLine ->