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

CodeQL编译脚本执行无反应 #3

Open
Cw00k opened this issue Apr 6, 2022 · 6 comments
Open

CodeQL编译脚本执行无反应 #3

Cw00k opened this issue Apr 6, 2022 · 6 comments

Comments

@Cw00k
Copy link

Cw00k commented Apr 6, 2022

执行codeql_compile.py脚本无反应,根目录下也没有生成 [项目名]save[时间戳] 目录。

image

@Cw00k Cw00k closed this as completed Apr 6, 2022
@Cw00k
Copy link
Author

Cw00k commented Apr 8, 2022

WEB-INF/classes下的源码反编译时能成功获取java源文件,但创建codeql数据库后classes下的java文件不存在
image

@Cw00k Cw00k reopened this Apr 8, 2022
@ice-doom
Copy link
Owner

ice-doom commented Apr 8, 2022

可以看下,生成的bat文件中,是否存在这些.java文件名。如果存在可以看下是否指定正确了依赖包路径

@Cw00k
Copy link
Author

Cw00k commented Apr 9, 2022

你好,这些.java是在WEB-INF/classes目录下的,code_compile的时候指定的依赖包目录是WEB-INF/lib,生成的bat文件中不存在这些java文件。

@ice-doom
Copy link
Owner

ice-doom commented Apr 9, 2022

说错了,应该是查看file.txt文件中是否包含那些java文件,我本地测试结果是有包含这些路径。
可能问题出现在编译时后,依赖包路径需要将jar都存放在本地可直接访问的路径中。

@Cw00k
Copy link
Author

Cw00k commented Apr 10, 2022

file.txt有WEB-INF/classes下的.java文件,但是创建的CodeQL数据库的src.zip里没有。

@ice-doom
Copy link
Owner

那可以尝试命令行中直接运行.cmd脚本,是否存在什么问题。看看ecj编译的过程

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

2 participants