Skip to content

Commit

Permalink
Add persistToPropertiesFile overload
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva committed Feb 15, 2024
1 parent d62624f commit 963f691
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 963f691

Please sign in to comment.