Menu

#55 Example using SystemCL in one-jar

open-accepted
5
2010-10-13
2010-10-09
Robert Gola
No

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.

Discussion

  • Robert Gola

    Robert Gola - 2010-10-09

    test sources and binary

     
  • Robert Gola

    Robert Gola - 2010-10-09

    This is the example for 3083810 but I couldn't attach a file there!

     
  • P. Simon Tuffs

    P. Simon Tuffs - 2010-10-13
    • assigned_to: nobody --> simontuffs
    • status: open --> open-accepted
     
  • P. Simon Tuffs

    P. Simon Tuffs - 2010-10-13

    Will look into this for 0.98

     

Log in to post a comment.