Class ReproducibleUtils

java.lang.Object
org.eclipse.tycho.ReproducibleUtils

public class ReproducibleUtils extends Object
Utility methods for reproducible builds.
  • Method Details

    • storeProperties

      public static void storeProperties(Properties properties, Path file) throws IOException
      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.