History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-5256
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Nikolay Chashnikov
Reporter: Marcus Brito
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Offer to redeploy a web application when hotswap fails

Created: 14 Nov 05 16:15   Updated: 17 Sep 08 18:46
Component/s: Debugger, J2EE.Deployment and Run.Generic
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,542


 Description  « Hide
Let's say I'm developing a web application using Tomcat, and IDEA is currently attached to a local Tomcat server. My work usually follows the routine:

1) Edit jsp pages, invoke "make". IDEA will redeploy the new pages, everything is OK.
2) Edit existing methods in java classes, invoke "make". IDEA will reload the classes, everything is OK.
3) Create new methods in java classes, invoke "make". IDEA will try to reload the classes, and fail.

It would be nice if at this point IDEA automatically asked me to redeploy the web application.



 All   Comments   Work Log   Change History      Sort Order:
Marcus Brito - 14 Nov 05 16:16
See IDEA-5783 for a different view on the same problem.

Nikolay Chashnikov - 29 May 06 19:03
I'm in some doubt about desired IDEA's behaviour in the described case. There are three cases:

a) "Deploy after compilation" option is set to "Always'". In this case IDEA will perform redeploying the application instead of reloading the classes (because IDEA-5783 is already fixed) so everything is all right.

b) "Deploy after compilation" option is set to "Ask". IDEA will ask about redeploying and only in case of refusal reloading the classes will be performed. Are you sure that IDEA should ask about redeploying again after failing of reloading the classes?

c) "Deploy after compilation" option is set to "Never". Should IDEA redeploy silently the application after failing? Or ask to redeploy?


Marcus Brito - 29 May 06 20:38
Hmm, tricky question. Maybe we need a new option? I can imagine the most useful option for me would be one where IDEA would always try to reload changed classes, and when that fails, automatically redeploy the application. Here's what I think should happen:

a) "Deploy after compilation" will always redeploy the application when needed. This means that class reloading will be tried first, and if that fails, the application will be silently redeployed.

b) "Ask": same as above, but instead of silently redeploying the application, IDEA would ask the user first.

c) "Never": if reloading fails, IDEA warns the user about it and does nothing.