Eclipse Alfresco快速应用开发(Hot Reloading) [英] Rapid Application Development in Eclipse Alfresco (Hot Reloading)

查看:243
本文介绍了Eclipse Alfresco快速应用开发(Hot Reloading)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Alfresco 5社区的All-in-one项目中的子项目AMP(add-action-repo)中的SendAsEmailActionExecuter.java文件中进行更改。这是一个例子,你可以在以下链接。我正在eclipse开发,当我自定义一个ftl或js文件eclipse eclipse重新加载更改。如何实现与java文件相同的事情,而不需要每次执行clean install -Prun命令。

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.

我注意到这个指南,但DemoComponentTest不会成为伎俩。

I have notice this guide but the DemoComponentTest does not make the trick.

如何在这种情况下实现热重新加载?

How can achieve hot reloading in a such case ?

推荐答案

快速应用程序开发(RAD)在Alfresco SDK中由弹簧加载的库提供。

The Rapid Application Development (RAD) in Alfresco SDK is delivered by the spring loaded library.

长篇小说,您需要使用发货的OOTB run.sh / run.bat运行项目取决于您的操作系统。

Long story short, you need to run your project using the shipped OOTB run.sh / run.bat depending on your OS.

运行脚本将检查您的repo中是否已存在弹簧加载的jar,如果不存在,则运行配置文件设置,然后运行 mvn integration-test -Prun mvn install -Prun ,我不记得哪个被调用脚本,但它应该是这两个之一

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

更新:

  • 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)

这篇关于Eclipse Alfresco快速应用开发(Hot Reloading)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆