While we try to move the folks in my project here over to idea 4.x and try
to refactor our apps so they play nice with idea and ant at the same time, I
ran into an interesting issue.
One of the first steps we need to make is to have an ant target build our
war files and deploy them into an exploded dir. That's the easy part and I
have idea starting Tomcat up while pointed to that directory and basically
instructing idea not to deploy anything, but to just start up.
The problem is that our app has some context specific needs, where we need
to add our jdbc connection information for our context. So we have a file
called foo.xml which contains the context specific information. It seems to
me that the only place this file can reside is Catalina/localhost. The
problem is that if I deploy the file there with my ant build, I am putting
it in the <tomcat-root>/conf/Catalina/local directory, but IDEA expects it
to be in /Users/sfeir/Library/Caches/IntelliJ
So my question is, how do I specify this file in idea so it will deploy it
to the right spot???? Is that even possible???
Any clues would be great.
P.S. Yes we will make it work with idea deploying the files, but we want to
refactor one step at a time and not change everything in one shot, that
would be entirely too much work.