AnsweredAssumed Answered

Hotswap- SDK3 - Property files not hotreloaded

Question asked by kaposto on Nov 28, 2017

Hello everyone,

 

I have setup an AIO project with Maven. I have installed Hotswap and DCEVM as instructed here: Using HotSwapAgent | Alfresco Documentation and the hot-reloading for the example in the link works as described. The problem is that I have a custom property file overwriting some of the default messages in alfresco, and when I change the file, it is not hot-reloaded. Details about my setup:

Maven: 3.3.9

MAVEN_OPTS=-Xms1024m -Xmx4G -XXaltjvm=dcevm -javaagent:/home/myuser/eclipse/java-agents/hotswap-agent-1.0.jar
M2_HOME=/usr/local/apache-maven-3.3.9

JAVA_HOME=/usr/lib/jvm/java-8-oracle

 

Attached is the pom.xml, the hotswap-agent.properties file located in lina-aio-share-jar/src/main/resources/hotswap-agent.properties.

The custom messages file is located at lina-aio-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/org/alfresco/messages/slingshot-lina-custom.properties and is bootstraped through lina-aio-share-jar/src/main/resources/alfresco/web-extension/custom-slingshot-application-context.xml

My browser does not keep any cached files.

 

Any idea why the messages are not hotreloaded?

Outcomes