开发者

How to rollback commands in Spring Roo?

I realise that this has been asked before but the thread seems about 9 months old. Just want to check if the newer versions have added this capability.

I seemed to have goofed up with one command and desperate开发者_Go百科ly want to rollback.


They are still working on this: https://jira.springsource.org/browse/ROO-911

This feature will solve this problem by optionally keeping everything in a local git repo (so you can always roll back to the last version).

Update: From the JIRA comments, it seems like a first working version is available


OK- I have used Refactoring from STS to make the change and ROO Shell did pick this up and made corresponding changes to ROO artifacts.

I was running ROO shell from within STS.

If that helps anyone.


As @sean-patrick-floyd mentioned, this is now available as a Spring Roo 'addon'.

Description: Offers GIT Integration in the project. Each successfully executed command will be automatically committed to a local GIT repository.

roo > addon search git
roo > addon install id --searchResult 1

Then you can use the built in commands to rollback:

* git revert commit
* git revert last 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜