jducoeur: (Default)
[personal profile] jducoeur
Getting things building in Ant has proven pleasantly straightforward. But now that I'm deploying to Tomcat, I *finally* discover that I've been inconsistent in my case usage. The app-level tier is all in the "com.CommYou" package, whereas the middle tier is more correctly in "com.commyou". I must have made the mistake early on in development, and Eclipse has happily made it easy to just keep replicating the error without really noticing it. But the inconsistent usage trips things up when it all gets stuffed into a WAR file.

*Sigh*. So today's project is fixing this mess, and getting the packages right. Once again, I am reminded that IDEs are useful but dangerous -- once you make it an error, they make it quite easy to just keep making the same error over and over again...

Pain

Date: 2008-04-21 05:25 pm (UTC)
From: [identity profile] metageek.livejournal.com
Ow. I used to run into that at Centive, where we were developing in Java, on Windows, using Perforce—which did not make it easy to change the case of a filename in the repository (I'm not sure we ever managed it at all, actually).

If you can check out your code onto a Linux box (you're using one for a server, right?), you can do the global search and replace with:

find . -name '*.java' -exec sed -i -e's/com\.CommYou/com.commyou/' {} \;

...that's assuming that all the files "com.CommYou" are named something.java, and it assumes that you're in the root directory of your source tree.

Re: Pain

Date: 2008-04-21 07:33 pm (UTC)
From: [identity profile] metageek.livejournal.com
Oh, right, that stuff. Whee.

Profile

jducoeur: (Default)
jducoeur

July 2025

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
27 28293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags