github / github/codeql

mvnw issue

Đang mở
#13,435 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
acknowledged bug Java
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

I just make a simple project that has a mvnw script in its root directory, and then I ran following from root directory:

```bash
codeql database create --source-root . --language=java DB_Codeql
```
I also try to ran from parent directory such as

```bash
codeql database create --source-root myMavenJavaPrj --language=java DB_Codeql
```
I got following error messages:

> [2023-06-13 00:26:44] [build-stdout] [2023-06-13 00:26:44] [autobuild] [ERROR] Error executing command /home/am/1_CodeQL Workspace/Java/myMavenJavaPrj/./mvnw clean package -f "pom.xml" -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip -DskipTests -Dmaven.test.skip.exec -Dlicense.skip=true -Drat.skip=true -Dspotless.check.skip=true

> [2023-06-13 00:26:44] [build-stdout] com.semmle.util.exception.ResourceError: IOException while executing process with args: [/home/am/1_CodeQL, Workspace/Java/myMavenJavaPrj/./mvnw, clean, package, -f, pom.xml, -B, -V, -e, -Dfindbugs.skip, -Dcheckstyle.skip, -Dpmd.skip=true, -Dspotbugs.skip, -Denforcer.skip, -Dmaven.javadoc.skip, -DskipTests, -Dmaven.test.skip.exec, -Dlicense.skip=true, -Drat.skip=true, -Dspotless.check.skip=true]

> [2023-06-13 00:26:44] [build-stdout] Caused by: java.io.IOException: Cannot run program "/home/am/1_CodeQL" (in directory "."): error=2, No such file or directory

it seems that the problem can be `./mvnw ` too (maybe) which should be just `mvnw` the main issue seems to be the space character that exists in one of my directories name.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.