Example using SystemCL in one-jar
Status: Beta
Brought to you by:
simontuffs
Attached there is an example for a custom formatter to be used in one-jar:
- I put MyFormatterSystemCl and MyFormatterExt manually in the one-jar.
- There are 3 logging.properties included
You can start:
java -jar one-jar-test-1.0.0-SNAPSHOT.one-jar.jar logging.properties - which does not find the formatter so SimpleFormatter is used
java -jar one-jar-test-1.0.0-SNAPSHOT.one-jar.jar loggingSystemCL.properties - which uses the MyFormatterSystemCl
java -jar one-jar-test-1.0.0-SNAPSHOT.one-jar.jar loggingExt.properties - which throws an Exception as the superclass of MyFormatterExt is not found by the SystemClassLoader.
test sources and binary
This is the example for 3083810 but I couldn't attach a file there!
Will look into this for 0.98