Skip to content

Commit

Permalink
Add persistToPropertiesFile overload (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva committed Feb 18, 2024
1 parent d62624f commit 338a59e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,15 @@ public void persistToPropertiesFile() {
return;
}
try (FileOutputStream fos = new FileOutputStream(new File(getPropertiesFile()).getCanonicalFile())) {
preparePropertiesToPersist().store(fos, "BuildInfo configuration property file");
persistToPropertiesFile(fos);
} catch (IOException e) {
throw new RuntimeException(e);
}
}

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

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

0 comments on commit 338a59e

Please sign in to comment.