github / github/codeql

mvnw issue

オープン
#13,435 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
acknowledged bug Java
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。