• Re: how to handle 'resources' best

    From Thorsten Glaser@21:1/5 to Andreas B. Mundt on Thu Jul 6 20:00:01 2023
    On Thu, 6 Jul 2023, Andreas B. Mundt wrote:

    The 'resources' are expected relative to /usr/share/java/filius.jar in >directories (i.e. config/filius.ini). How is it best to handle this >situation? Is it possible to tweak the path somehow (in the wrapper
    script?) or do I need to patch the sources? Right now, I copy the
    resources to /usr/share/filius/.

    If “filius” is an end program, not a library that others could use,
    I’d say place the JAR and resources both in /usr/share/filius/, skip
    putting the JAR into /usr/share/java/. But that’s just my opinion,
    others can put in something from best practices or so.

    bye,
    //mirabilos
    --
    Infrastrukturexperte • tarent solutions GmbH
    Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
    Telephon +49 228 54881-393 • Fax: +49 228 54881-235
    HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
    Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

    **************************************************** /⁀\ The UTF-8 Ribbon
    ╲ ╱ Campaign against Mit dem tarent-Newsletter nichts mehr verpassen:  ╳  HTML eMail! Also, https://www.tarent.de/newsletter
    ╱ ╲ header encryption!
    ****************************************************

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas B. Mundt@21:1/5 to All on Thu Jul 6 19:50:01 2023
    Hi Thorsten, tony, all,

    many thanks for your help! It almost started working now: I added a
    wrapper script as suggested by tony and got rid of the missing class definitions. However, the next challenge turned up: filius uses some 'resources' [1] which need to be available and I am not sure how to
    solve this best. So far, they are not deployed by the packet
    automatically, but a debian/libfilius-java.install file solves this.

    The 'resources' are expected relative to /usr/share/java/filius.jar in directories (i.e. config/filius.ini). How is it best to handle this
    situation? Is it possible to tweak the path somehow (in the wrapper
    script?) or do I need to patch the sources? Right now, I copy the
    resources to /usr/share/filius/.

    Many thanks in advance for help and hints,

    Andi


    [1] https://gitlab.com/filius1/filius/-/tree/master/src/main

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)