Interesting issue

Hey folks,

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
IDEA45/tomcat_abminer_bfaa85e1/conf/Catalina/localhost/abminertest.xml

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.

Thanks
R

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.

1 comment

Never mind... Solved it by simply moving everything in my tomcat context
specific xml into web.xml

Works fine now... But weird of course....
R


On 12/1/04 4:05 PM, in article BDD39C41.2E2D%robert@codepuccino.com, "Robert
S. Sfeir" <robert@codepuccino.com> wrote:

Hey folks,

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
IDEA45/tomcat_abminer_bfaa85e1/conf/Catalina/localhost/abminertest.xml

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.

Thanks
R

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.


0

Please sign in to leave a comment.