I'm trying to setup an old website in intellij IDEA. I have all the source code and necessary configuration files for the old project. Have setup source code and web content in intellij and it compiles. I can't really figure out how to start the application though. I found a post describing how to do this using the "bootstrap class" in Tomcat. I can start my server using this technique but my application is not deployed automatically inside Tomcat.
Is there a way I can specify something like a dynamic webapp-directory when starting Tomcat using the bootstrap class? I know I can configure Tomcat to look for an application in the webcontent folder of my project but that kind of seems like the wrong way to go, eg if I change the location of my project, it wont work.
So my question is: Is there a way I can tell the bootstrap class to "include" my web application root directory, which would be the web content folder residing inside my project folder.