I want to make changes in the SendAsEmailActionExecuter.java file in the sub-project AMP (add-action-repo) which is inside All-in-one project in Alfresco 5 community. It is an example as you can see in the following link. I am developing in eclipse and when I customize an ftl or js file the eclipse the eclipse reload the changes. How can achieve the same thing with java file without the need to execute clean install -Prun command every time.
I have notice this guide but the DemoComponentTest does not make the trick.
How can achieve hot reloading in a such case ?
The Rapid Application Development (RAD) in Alfresco SDK is delivered by the spring loaded library.
Long story short, you need to run your project using the shipped OOTB run.sh / run.bat depending on your OS.
The run script will check if the spring-loaded jar is already present in your repo, run profile setup if it is not present to go fetch it, and then run mvn integration-test -Prun
or mvn install -Prun
, I do not remember which is called on the script but it should be one of those two
UPDATE :
- Please refer to this file for further reference
- Please note that RAD is not available in SDK-2.2 as it is not compatible with it and would prevent the repo from starting
- SDK 2.2 is only available for alfresco 5.1.x code base (and it is the only viable option for developing 5.1.x extensions)