You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/ibm/cldk/CodeAnalyzer.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ public class CodeAnalyzer implements Runnable {
69
69
@Option(names = {"--no-build"}, description = "Do not build your application. Use this option if you have already built your application.")
70
70
privatestaticbooleannoBuild = false;
71
71
72
-
@Option(names = {"-f", "--project-root-path"}, description = "Path to the root pom.xml file of the project.")
72
+
@Option(names = {"-f", "--project-root-path"}, description = "Path to the root pom.xml/build.gradle file of the project.")
73
73
publicstaticStringprojectRootPom;
74
74
75
75
@Option(names = {"-a", "--analysis-level"}, description = "Level of analysis to perform. Options: 1 (for just symbol table) or 2 (for call graph). Default: 1")
if (newFile(projectRootPom, gradleWrapper).exists()) {
57
+
GRADLE_CMD = gradleWrapper;
58
+
} elseif (commandExists(gradle)) {
59
+
GRADLE_CMD = gradle;
60
+
} else {
61
+
thrownewIllegalStateException("Could not file a valid gradle command. I did not find " + gradleWrapper + " or " + gradle + " in the project directory or in the system PATH.");
0 commit comments