Webapps with 998

Ok I am so close to reproducing a consistent setup I could scream. the first and MOST IMPORTANT hint I'm gonna give everyone is, when you setup your directories, like the source dir, resources, libs etc... SET THE OUTPUT PATH TO THE DIRECTORY ITSELF! Don't ask me why, I think that's terrible, perhaps it's a side effect of the code changing.

Yes what I mean is that if you have

mesquite
src
resouces (xml files for struts etc..)

The output path for src is the src dir
The output path for resouces is the resouces dir

what will happen if you do this is that they will both end up in the WEB-INF/classes directory like they should be, or if you want resouces under WEB-INF simply edit the J2EE deployment screen and point them there. If you don't point the output directory to itself, it will not work right, you'll get all sorts of cannot copy errors because it would make things recursive, or the directories will end up in 2 places, or not be copied at all.

This is nuts, but I have a webapp working!

R

3 comments
Comment actions Permalink

--The output path for src is the src dir
--The output path for resouces is the resouces dir

What do you mean by that? I don't see an output path for each of those. Am I missing something?

0
Comment actions Permalink

Brad Lane wrote:

--The output path for src is the src dir
--The output path for resouces is the resouces dir

What do you mean by that? I don't see an output path for each of those. Am I missing something?


Sorry it was a bit foggy.

Here is the thing. If you setup a java module, which you would then use
as a dependency for your web module. The java module's output directory
is itself.

Does that make sense now?

If not I can upload a pic to show you what I mean.
R

0
Comment actions Permalink

Ok GOT IT! Man that took a bit of tinkering, but I can reproduce making a web module every time, it runs debugs deploys, explodes and everything.

I'll need to spend some time tonight re writing a mini tutorial based on the older one I wrote, which doesn't work...

There are a couple of tricks, but in the end, my webapp directory has everything I need it to produce a fully deployed application. The war file stuff I think behaves differently, probably because of some of the bugs I've had to workaround, so I'm only going to address an exploded web dir.

More soon.
R

0

Please sign in to leave a comment.