Jump to content
stanhope

[release] RPT shortener

Recommended Posts

I know there are already plenty out there but I wrote it and put it on gitlab so I might as well share it here.

 

What it is:

There are 2 gitlabs linked bellow.  The first one is the very basic tool the second one is a more advanced tool.  Both are intended to be integrated into a server restarter script/program.  Both are command line tools (jars) that take arguments to process the file.

 

How to use it:

Download the source, compile it and use it as a command line tool.  For windows that's:

java -jar jarname param1 param2 ... param n

The 2 tools use different params, both have a readme explaining how to use the specific tool.  If you need any more help don't hesitate to ask for it here, via PM or via gitlab. 

 

Source code:

Version 1: https://gitlab.com/stanhope/rptshortenerv1

Version 2: https://gitlab.com/stanhope/rptshortenerv2

 

Jars can be found in out/artifacts on the second link.

 

License:

Both have MIT license, included in the source code. 

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

Thank you very much for this stanhope !

 

I always see you helping the others ,  so this will  help more !

Share this post


Link to post
Share on other sites

Well done!

 

Back in the day I began looking at making a .NET WPF app to parse RPT's and present errors red and warning yellow - an easy reader.

 

May have to resurrect that with WPF nearly being supported on Linux via .NET Core :-)

 

One suggestion: Make the keywords configurable via JSON file

  • Thanks 1

Share this post


Link to post
Share on other sites

JSON isn't by default supported by java afaik, that's why I chose xml.  I might make another version with a jar included for json.

Share this post


Link to post
Share on other sites

JSON version is on gitlab (second link), it's mission some documentation but it's there. 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
58 minutes ago, .kju said:

these are some regex i use for RPT filtering: https://pastebin.ubuntu.com/p/c3M3MfQn8n/

I considered using regex to do the filtering but decided to go with an array of keywords to allow for easily changing which lines you do and don't want in your RPT. 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×