java.lang.Object
org.eclipse.tycho.ReproducibleUtils
Utility methods for reproducible builds.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstoreProperties(Properties properties, Path file) Writes the property list to the output stream in a reproducible way.
-
Method Details
-
storeProperties
Writes the property list to the output stream in a reproducible way. The java.util.Properties class writes the lines in a non-reproducible order, adds a non-reproducible timestamp and uses platform-dependent new line characters.- Parameters:
properties- the properties object to write to the file.file- the file to write to. All the missing parent directories are also created.- Throws:
IOException- if writing the property list to the specified output stream throws an IOException.
-