cancel
Showing results for 
Search instead for 
Did you mean: 

Override an resource file

georgera
Champ in-the-making
Champ in-the-making
How can I override a resource file installed by my amp?

The service-context.xml in my amp has a bean with the following property.

      <property name="template">
         <value>classpath:alfresco/module/MessageTemplates.json</value>
      </property>


Now assuming down the road I want to change the contents of MessageTemplates.json without rebuilding and deploying the amp how can I do that?
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

if your AMP contains that file (not the JAR inside the AMP), then you can find it in the exploded Alfresco web application and edit it via a text editor without rebuilding / deploying. Look in _tomcat_/webapps/alfresco/WEB-INF/classes/ and from there on use the path defined in your Spring bean.
Of course any changes should be reflected in your source-controlled AMP project.

Regards
Axel