Skip to content

Commit 0dcde52

Browse files
committed
Fixing issue 87 with maven wrapper
Signed-off-by: Rahul Krishna <[email protected]>
1 parent 93e5efb commit 0dcde52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ibm/cldk/utils/BuildProject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public static boolean downloadLibraryDependencies(String projectPath, String pro
228228
if (pomFile.exists()) {
229229
Log.info("Found pom.xml in the project directory. Using Maven to download dependencies.");
230230
if (!commandExists(MAVEN_CMD))
231-
throw new IllegalStateException("Could not find a valid maven command. I did not find " + MAVEN_CMD + " in the project directory or in the system PATH.");
231+
throw new IllegalStateException("Could not find a valid maven command. Could not find " + MAVEN_CMD + " in the project directory or in the system PATH.");
232232

233233
String[] mavenCommand = {
234234
MAVEN_CMD, "--no-transfer-progress", "-f",
@@ -240,7 +240,7 @@ public static boolean downloadLibraryDependencies(String projectPath, String pro
240240
} else if (new File(projectRoot, "build.gradle").exists() || new File(projectRoot, "build.gradle.kts").exists()) {
241241
Log.info("Found build.gradle or build.gradle.kts in the project directory. Using gradle to download dependencies.");
242242
if (!commandExists(GRADLE_CMD))
243-
throw new IllegalStateException("Could not find a valid Gradle command. I did not find " + GRADLE_CMD + " in the project directory or in the system PATH.");
243+
throw new IllegalStateException("Could not find a valid Gradle command. Could not find " + GRADLE_CMD + " in the project directory or in the system PATH.");
244244

245245
Log.info("Found build.gradle[.kts] in the project directory. Using Gradle to download dependencies.");
246246
tempInitScript = Files.writeString(tempInitScript, GRADLE_DEPENDENCIES_TASK);

0 commit comments

Comments
 (0)