org.dstadler.commons.util.PrintSystemProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-dost Show documentation
Show all versions of commons-dost Show documentation
Common utilities I find useful in many of my projects.
package org.dstadler.commons.util;
import java.io.FileOutputStream;
import java.io.IOException;
public class PrintSystemProperties {
/**
*
* @param args
* @author dominik.stadler
* @throws IOException
* @throws Exception
*/
public static void main(String[] args) throws IOException {
try (FileOutputStream out = new FileOutputStream("SystemProperties.log")) {
System.getProperties().store(out, "Current System Properties");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy