Precompiling JSPs and deploying to IntelliJ tomcat cache

Answered

I've been bouncing my head off of trying to get precompiled JSPs over into the tomcat cache dir that IntelliJ won't let me override

(~/Library/Caches/IntelliJIdea2018.2/tomcat/Tomcat_9_0_71_(1)_IOP/work/Catalina/...)

I have a set of gradle tasks that build my war that precompiles my larger JSPs into java files and then compiles those files in turn into class files. I now need to be able to push the compiled jsp files over into the IntelliJ cache folder so it won't attempt to dynamically compile the JSP files when they're first touched.

Is there any way to do this?

Alternately is there any way to get IntelliJ to point to a different CATALINA_BASE so that it won't use that cache dir at all?

 

0
2 comments

See https://stackoverflow.com/a/14487462/104891 .

You can also configure IntelliJ IDEA to deploy the .war produced by Gradle using the External Source option in the Deployment tab of the  Tomcat run/debug configuration.

0
Avatar
Permanently deleted user

Thanks! I'll give this a try! I did try the External Source option - pointing the deploy to where our war files are located, but IntelliJ still insisted on trying to dynamically compile the jsps in the caches folder.

 

0

Please sign in to leave a comment.