from http://ant.apache.org/manual/CoreTasks/copy.html
Copy a set of files to a directory
<copy todir="../dest/dir">
<fileset dir="src_dir">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy todir="../dest/dir">
<fileset dir="src_dir" excludes="**/*.java"/>
</copy>
can you use <ant:fileset dir="${maven.war.src} excludes="**/images/*" />
----- Original Message -----
From: "Sri Sankaran" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 1:34 PM
Subject: RE: Excluding files from .war using war:war
I haven't tried it. Sorry I didn't mean to suggest that.
The war:webapp goal -- which gets invoked when you call war:war -- copies
everything in your webapps directory -- with no excludes:
<j:if test="${webSourcesPresent == 'true'}">
<ant:copy todir="${maven.war.webapp.dir}">
<ant:fileset dir="${maven.war.src}"/>
</ant:copy>
</j:if>
I think the only alternative is to prep a copy of your webapps directory
with just what you want copied and then set the maven.war.src to point to
it. I use that technique since I have to modify my web.xml before building
the war.
Sri
-----Original Message-----
From: Konrad [mailto:[EMAIL PROTECTED]
Sent: Fri 8/29/2003 2:18 PM
To: Maven Users List
Cc:
Subject: RE: Excluding files from .war using war:war
Hi Sri.
Thanks for your suggestion, but I already tried that:
<resource>
<directory>src/webapp/images</directory>
<excludes>
<exclude>*.*</exclude>
</excludes>
</resource>
Unfortunately, it's not working. Does it work for you?
Thank you.
Sri Sankaran <[EMAIL PROTECTED]> wrote:
Have you tried using the <EXCLUDES>sub-element of the <RESOURCE>element? See
http://maven.apache.org/reference/project-descriptor.html#resource.
Sri
-----Original Message-----
From: Konrad [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Excluding files from .war using war:war
Does the "war" plugin's war:war goal read the in project.xml when deciding
what files to include/exclude in the .war that is built, or is only for
.jars?
I'm trying to figure out how to exclude certain resources from the .war. I
saw that there is a "maven.war.classes.excludes" property for the "war"
plugin, but didn't see a "maven.war.resource.excludes" one.
Do I just need to write a pregoal for "war:war" that deletes certain
resources in "${maven.war.webapp.dir}"?
Thank you.
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]