|
@@ -226,6 +226,8 @@ class Compiler {
|
|
|
If you want to specify a different set of paths to search for modules, you can use the optional
|
|
|
argument `classPath`.
|
|
|
|
|
|
+ Usage of this function outside of initialization macros is deprecated and may cause compilation server issues.
|
|
|
+
|
|
|
@param pack The package dot-path as String. Use `''` to include the root package.
|
|
|
@param rec If true, recursively adds all sub-packages.
|
|
|
@param ignore Array of module names to ignore for inclusion.
|
|
@@ -301,6 +303,7 @@ class Compiler {
|
|
|
Context.error('Package "$pack" was not found in any of class paths', Context.currentPos());
|
|
|
}
|
|
|
|
|
|
+ Context.assertInitMacro();
|
|
|
Context.onAfterInitMacros(() -> include(pack, rec, ignore, classPaths, strict));
|
|
|
}
|
|
|
|