Web development with Tomcat & IntelliJ

I think I have worked out how to setup the tomcat integration with IDEA (4.5.2) properly... all seems to work ok.

I am currently getting it to deploy to an exploded directory.

However, I have one gripe/query.

I cant seem to work out how to set things up so that tomcat is pointing directly at my dev directory - ie where I am editing. Instead I have to hit the "Deploy All" to synch my edited files with the exploded dir.

I am finding this a bit of a pain. I edit my velocity or jsp, CTRL-S, then F5 in the browser... no change. Unless I remember to hit the "deploy all" button EVERY time I switch between IntelliJ and Browser, I wont see my update. Even in a pairing env, we have wasted some considerable minutes trying to work out "why didnt that change work?" - because we forgot to hit the button.

Why does it work this way - and is there a way to make it work like I have described?
It was how it used to work in Idea 3 & Tomcat4...

1 comment

Hi,

- Build command (Control+F9) also deploys.
- Alternatively, you can setup your web module to have module content
root = exploded dir = web resource root,
all the changes will be instantly on the web server (beware to set
excluded exploded directory to false)

Nick Minutello wrote:

I think I have worked out how to setup the tomcat integration with IDEA (4.5.2) properly... all seems to work ok.

I am currently getting it to deploy to an exploded directory.

However, I have one gripe/query.

I cant seem to work out how to set things up so that tomcat is pointing directly at my dev directory - ie where I am editing. Instead I have to hit the "Deploy All" to synch my edited files with the exploded dir.

I am finding this a bit of a pain. I edit my velocity or jsp, CTRL-S, then F5 in the browser... no change. Unless I remember to hit the "deploy all" button EVERY time I switch between IntelliJ and Browser, I wont see my update. Even in a pairing env, we have wasted some considerable minutes trying to work out "why didnt that change work?" - because we forgot to hit the button.

Why does it work this way - and is there a way to make it work like I have described?
It was how it used to work in Idea 3 & Tomcat4...



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.