I need a simple standalone application that allows me to put in an input jar file and then output a new jar file with certain configurable string constants replaced with something else. Here is an example:
Original Code (compiled and obfuscated- string encryption disabled):
Output Code (compiled and obfuscation is still kept- the USER constant is the ONLY thing that is changed);
Config:
Original Code (compiled and obfuscated- string encryption disabled):
Java:
public class Main {
public static final String USER = "%%__USER__%%";
public static void main(String[] args) {
System.out.println(USER);
}
}
Output Code (compiled and obfuscation is still kept- the USER constant is the ONLY thing that is changed);
Java:
public class Main {
public static final String USER = "12345";
public static void main(String[] args) {
System.out.println(USER);
}
}
Config:
YAML:
input: input.jar
output: output.jar
placeholders:
1:
original: "%%__USER__%%"
replaced: "12345"
