Add a config guide
MOMIN5 opened this issue · 5 comments
the jar just creates a empty json file, with no instructions on how to make the config, i tried reading the code and found "files.input" and "files.output" in ConfigSetting.class , i put them in a json format like this
but it still throws Exception in thread "main" java.lang.IllegalArgumentException: Missing input file in config.
also please add the example in readme 🙏
Hey!
Vetric is still in the really early stages of development and should not be used outside of testing. The config is pretty complex, so I will definitely add a full guide in the future. However, if you really want to use/test Vetric in its current state, I can give you a full config.
Oh, and files.input
doesn't work because it's a JSON XPath. So the correct version would be:
"files": {
"input": "./in.jar",
"output": "./out.jar"
}
If you have any more questions, feel free to add me on Discord: ByteZ#1337
I will leave this issue open as a reminder to add a config guide
thanks for helping!, one last thing how can i enable transformers?
no transformers enabled
Here is a full config. Before using it, please pull the latest changes, since your version still contains some debug information.
the jar just creates a empty json file, with no instructions on how to make the config, i tried reading the code and found "files.input" and "files.output" in ConfigSetting.class , i put them in a json format like this
but it still throws
Exception in thread "main" java.lang.IllegalArgumentException: Missing input file in config.
also please add the example in readme 🙏
hello momin