Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增量编译为什么没有处理 DirectoryInput #25

Open
zouliping opened this issue Mar 19, 2020 · 0 comments
Open

增量编译为什么没有处理 DirectoryInput #25

zouliping opened this issue Mar 19, 2020 · 0 comments

Comments

@zouliping
Copy link

zouliping commented Mar 19, 2020

增量编译的处理,对于遍历 JarInput 有判断状态,读取缓存等操作

if (jarInput.status != Status.NOTCHANGED && cacheMap) {
     cacheMap.remove(jarInput.file.absolutePath)
 }

if (!scanProcessor.scanJar(src, dest) //直接读取了缓存,没有执行实际的扫描
                //此jar文件中不需要被注入代码
                //为了避免增量编译时代码注入重复,被注入代码的jar包每次都重新复制
                && !scanProcessor.isCachedJarContainsInitClass(src.absolutePath)) {
            //不需要执行文件复制,直接返回
            return
 }

但在遍历目录的时候,没有特殊的处理,没有使用到 DirectoryInput.getChangedFiles(),也没有缓存相关的操作

小白求助,可以请问一下是出于什么考虑吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant