public class JavaPropExtractGenerator
extends java.lang.Object
public static void main(String[] var0) {
PrintStream var1 = System.out;
for(int var2 = 0; var2 < var0.length; ++var2) {
var1.print(var0[var2]);
var1.print("=");
var1.println(System.getProperty(var0[var2], ""));
}
}
When invoked with the following arguments "java.version" "java.vendor" the following
standard output is generated:
java.version=1.8.0_292
java.vendor=Oracle Corporation
Whilst this class requires Objectweb ASM, it is only required when re-generating the PropExtract class.
Created by covers1624 on 28/10/21.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
DEFAULTS
The default list of properties extracted by this tool.
|
| Constructor and Description |
|---|
JavaPropExtractGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
generateClass() |
static void |
main(java.lang.String[] args) |
static java.nio.file.Path |
writeClass(java.nio.file.Path folder)
Write a 'PropExtract.class' file into the current folder.
|
public static java.lang.String[] DEFAULTS
public static java.nio.file.Path writeClass(java.nio.file.Path folder)
throws java.io.IOException
folder - The folder to write to.java.io.IOException - If an IO error occurs.public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] generateClass()