Skip to content

Commit

Permalink
additional information about classpath exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Jan 28, 2023
1 parent 50247e3 commit 478a51a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions haxe/ui/macros/MacroHelpers.hx
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,22 @@ class MacroHelpers {
private static var primaryClassPathExceptions:Array<EReg> = [];
private static var secondaryClassPathExceptions:Array<EReg> = [];
private static function loadClassPathExclusions(filePath:String) {
#if classpath_scan_verbose
Sys.println("classpath cache: loading classpath exclusions from '" + filePath + "'");
#end

var contents = sys.io.File.getContent(filePath);
var lines = contents.split("\n");
for (line in lines) {
line = StringTools.trim(line);
if (line.length == 0 || StringTools.startsWith(line, ";")) {
continue;
}

#if classpath_scan_verbose
Sys.println(" " + line);
#end

primaryClassPathExceptions.push(new EReg(line, "gm"));
secondaryClassPathExceptions.push(new EReg(line, "gm"));
}
Expand Down

0 comments on commit 478a51a

Please sign in to comment.