diff --git a/javaoverlay-plugin/src/main/groovy/com/dim/javaoverlay/task/process/SourceProcessor.groovy b/javaoverlay-plugin/src/main/groovy/com/dim/javaoverlay/task/process/SourceProcessor.groovy index 8df5624..b0941b2 100644 --- a/javaoverlay-plugin/src/main/groovy/com/dim/javaoverlay/task/process/SourceProcessor.groovy +++ b/javaoverlay-plugin/src/main/groovy/com/dim/javaoverlay/task/process/SourceProcessor.groovy @@ -28,7 +28,7 @@ public class SourceProcessor implements IProcessor { private Map classMap = new HashMap<>(); private Map sourceMap = new HashMap<>(); - SourceProcessor(final Project project) { + public SourceProcessor(final Project project) { classMapFile = new File(project.getBuildDir().getAbsolutePath() + "/intermediates/java-overlay/classMap"); if (!classMapFile.getParentFile().exists()) { classMapFile.getParentFile().mkdirs(); @@ -38,7 +38,7 @@ public class SourceProcessor implements IProcessor { } public void getLocalClassMap() { - TextFileUtils.visit(new File(file), new TextFileUtils.TextVisitor() { + TextFileUtils.visit(classMapFile, new TextFileUtils.TextVisitor() { @Override void visit(final String line) { String[] info = line.split(":");