This sounds pretty good. Usually I use the suggestion from Nicholas and create two projects, one for the jar, one for the war. But this time I'm going to be stubborn and keep them together.
Do you know how I create a goal that sets the included files to be "excluded"? If you do, that would be great. If you have some idea of how it would b done, that's great too. :)
Thanks a lot.
Charlie
Jefferson K. French said the following on 9/2/2004 11:15 AM:
Charlie,
You could do something like have two subprojects, with one setup to use the resources and the other not to use them. I think the source would live at the parent level, and the subprojects would be very minimal, just containing different project.xml files.
Or in a single project you could try creating a separate "code-only" goal that first excludes the files you don't want (or includes only those you do want) before attaining the jar:jar goal.
I can't recall offhand which ${pom} method to use when changing the resource list.
Jeff
On Thu, 02 Sep 2004, at 10:51:30 [GMT -0400] Charles N. Harvey III wrote:
Hello.
When I create a webapp with my project, I want it to include all
of the files in my "src/main/resources" directory. But when I
make a jar out of just the code, I do NOT want those files to
be included. Is there a way to set this up in the project.xml?
Because when I have this:
<resource> <directory>src/main/resources</directory>
<excludes>
<exclude>**/*.properties</exclude>
<exclude>**/*.xml</exclude>
</excludes>
</resource>
The files are not included in either.
But when I do this:
<resource> <directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
The files are included in both. Is there a way for me to be picky?
Thanks a lot.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
