spring-loaded icon indicating copy to clipboard operation
spring-loaded copied to clipboard

How do you enable this in STS?

Open trusktr opened this issue 10 years ago • 4 comments

How do we use Spring Loaded in STS (eclipse)?

I've tried adding

-javaagent:C:\Users\harkonnis\src\hp-dsat\springloaded-1.2.0.BUILD-20140409.201438-12.jar -noverify

to my VM arguments list in Run Configurations, so in total it contains

-Dcatalina.base="C:\Users\harkonnis\springsource\vfabric-tc-server-developer-2.9.5.SR1\base-instance" -Dcatalina.home="C:\Users\harkonnis\springsource\vfabric-tc-server-developer-2.9.5.SR1\tomcat-7.0.50.C.RELEASE" -Dwtp.deploy="C:\Users\harkonnis\springsource\vfabric-tc-server-developer-2.9.5.SR1\base-instance\wtpwebapps" -Djava.endorsed.dirs="C:\Users\harkonnis\springsource\vfabric-tc-server-developer-2.9.5.SR1\tomcat-7.0.50.C.RELEASE\endorsed" -Xmx768m -Xss256k -XX:MaxPermSize=256m -Dinsight.enabled=false 
-javaagent:C:\Users\harkonnis\src\hp-dsat\springloaded-1.2.0.BUILD-20140409.201438-12.jar -noverify

Every time I change a file the whole server reloads, so I went to the server configuration by double clicking on the VMware vFabric server and selected "Never publish automatically" in the Publishing section.

When I make changes to any files (e.g. changing some string values that should appear different on the front end) nothing happens. It's all the same.

Am I missing something?

trusktr avatar Apr 15 '14 19:04 trusktr

I haven't done this a lot myself but on the server properties page in STS there is a section "Application Reload Behaviour", choose the java agent based reloading option. You don't need to set any options. Then I think you also need to set your publish options possibly for the app as well as for the server. (turn off auto reload for the app?). Clicking the option on the server properties page will add an 'old' version of Springloaded to you launch configuration, which you should replace with the 1.2.0 build you are using. Sorry I don't have clearer instructions, I don't have time to try it right now, but hopefully some of those pointers will help.

aclement avatar Apr 16 '14 18:04 aclement

I think you'd better to add like this -Dspringloaded=verbose -javaagent:e:\springloaded-1.2.0.RELEASE.jar -noverify

and then you can find some changes .

well :)

tixo avatar Jun 25 '14 03:06 tixo

Make sure the "Auto reloading" option in Web Modules is not enabled.

flemer avatar Sep 19 '14 07:09 flemer

An year later, how does it compare with https://github.com/HotswapProjects/HotswapAgent/wiki/Eclipse-setup or can we use both agents at the same time for any benefit?

krishna81m avatar Mar 31 '15 03:03 krishna81m