Skip to content

Commit 338a59e

Browse files
authored
Add persistToPropertiesFile overload (#784)
1 parent d62624f commit 338a59e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/ArtifactoryClientConfiguration.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,15 @@ public void persistToPropertiesFile() {
239239
return;
240240
}
241241
try (FileOutputStream fos = new FileOutputStream(new File(getPropertiesFile()).getCanonicalFile())) {
242-
preparePropertiesToPersist().store(fos, "BuildInfo configuration property file");
242+
persistToPropertiesFile(fos);
243243
} catch (IOException e) {
244244
throw new RuntimeException(e);
245245
}
246246
}
247247

248+
public void persistToPropertiesFile(OutputStream os) throws IOException {
249+
preparePropertiesToPersist().store(os, "BuildInfo configuration property file");
250+
}
248251

249252
public EncryptionKeyPair persistToEncryptedPropertiesFile(OutputStream os) throws IOException, InvalidAlgorithmParameterException, NoSuchPaddingException, IllegalBlockSizeException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException {
250253
if (StringUtils.isEmpty(getPropertiesFile())) {

0 commit comments

Comments
 (0)