resources files in jar not reloaded

ZeroTurnaround Homepage Forums JRebel Support resources files in jar not reloaded

This topic contains 1 reply, has 1 voice, and was last updated by  dbalasse 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62515

    dbalasse
    Member

    I use Jrebel with an application that takes +/- 30 min to restart.
    It works perfectly for classes.
    But in the same jar i have resources file and those are not reloaded when modified.
    The jar is located in app.war/WEB-INF/lib/myJar.jar
    The resource file is located in myJar.jar/template/myResources.html

    The resource file is an html but it is not used by the web application. It is used as a template for an email. So i guess the <web> tag does not aplly here.

    What am I doing wrong ?

    Here is my rebel.xml
    <?xml version=”1.0″ encoding=”UTF-8″?>

    <!–
    This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project.
    Refer to https://manuals.zeroturnaround.com/jrebel/standalone/config.html for more information.
    –>
    <application generated-by=”intellij” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://www.zeroturnaround.com” xsi:schemaLocation=”http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd“>

    <classpath>
    <dir name=”$PATH_TO_THE_JAR_SRC_DIR/target/classes”>
    </dir>
    </classpath>

    </application>

    #62517

    dbalasse
    Member

    I manage to make it work by recompiling the jar.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.