Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerKwok committed Jul 16, 2024
1 parent 9d0c652 commit 1ea7e11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ public void validateExtensionSchema() throws IOException
javaExecSpec.setStandardOutput(validationOutput);
javaExecSpec.setErrorOutput(validationOutput);

// Handle failure after exec to output errors to build log
// Handle failure after exec to output error to build log
javaExecSpec.setIgnoreExitValue(true);
});

String validationOutputString = validationOutput.toString(StandardCharsets.UTF_8.name());
IOUtil.writeText(getOutputFile(), validationOutputString);
if (result.getExitValue() != 0) {
throw new GradleException("Error occurred validating schema extensions:\n" + validationOutputString);
throw new GradleException("Error occurred during schema extension validation:\n" + validationOutputString);
}
}
}

0 comments on commit 1ea7e11

Please sign in to comment.