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.
--
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]