diff --git a/build/common.hxml b/build/common.hxml index 065171a3..eb71cca0 100644 --- a/build/common.hxml +++ b/build/common.hxml @@ -2,4 +2,5 @@ -lib haxeparser -lib compiletime -lib hxargs --lib tokentree \ No newline at end of file +-lib tokentree +--macro CompileTime.importPackage("checkstyle.checks") diff --git a/src/checkstyle/ChecksInfo.hx b/src/checkstyle/ChecksInfo.hx index 395bc632..f2b61251 100644 --- a/src/checkstyle/ChecksInfo.hx +++ b/src/checkstyle/ChecksInfo.hx @@ -8,7 +8,6 @@ class ChecksInfo { public function new() { checkInfos = new Map(); - CompileTime.importPackage("checkstyle.checks"); var checksClasses = CompileTime.getAllClasses(Check); for (cl in checksClasses) {