DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22240>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22240 'excludes' attribute of war task fails to exclude files included by a nested fileset. Summary: 'excludes' attribute of war task fails to exclude files included by a nested fileset. Product: Ant Version: 1.5.1 Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following buildscript should exclude all files called '.nbattrs' (netBeans attributes, pesky little things), but doesn't. <target name="war" depends="build" description="Build WAR file."> <war destfile="dist/my.war" excludes=".nbattrs" webxml="metadata/web.xml" manifest="metadata/manifest.mf"> <webinf dir="metadata"> <exclude name="web.xml"/> <exclude name="manifest.mf"/> </webinf> <webinf dir="taglibrary"/> <classes dir="build"/> <classes dir="src/java" includes="*.properties"/> <lib dir="lib"/> <fileset dir="src/jsp"/> </war> <echo message="WAR file built."/> <echo message="======"/> </target> What follows is the verbose output for this target: war: [war] Building war: C:\work\java\struts\blank\dist\my.war [war] adding directory META-INF/ [war] adding entry META-INF/MANIFEST.MF [war] adding directory WEB-INF/ [war] adding entry WEB-INF/struts-config.xml [war] adding entry WEB-INF/struts-bean.tld [war] adding entry WEB-INF/struts-form.tld [war] adding entry WEB-INF/struts-html.tld [war] adding entry WEB-INF/struts-logic.tld [war] adding entry WEB-INF/struts-template.tld [war] adding entry WEB-INF/struts.tld [war] adding directory WEB-INF/classes/ [war] adding directory WEB-INF/classes/com/ [war] adding directory WEB-INF/classes/com/dcs/ [war] adding entry WEB-INF/classes/com/dcs/SubmitAction.class [war] adding entry WEB-INF/classes/com/dcs/SubmitForm.class [war] adding entry WEB-INF/classes/ApplicationResources.properties [war] adding directory WEB-INF/lib/ [war] adding entry WEB-INF/lib/struts.jar => [war] adding entry .nbattrs [war] adding entry index.jsp [war] adding entry submit.jsp [war] adding entry WEB-INF/web.xml [echo] WAR file built. [echo] ====== ...as you can see, a .nbattrs is added, most likely the one selected by the nested fileset. This was actually run with build 1.6alpha_2003-7-24, so I guess it's a bug for all builds. I tried variations of the pattern, like **/.nbattrs or **/*.nbattrs, but the only thing that keeps it from being added, is adding excludes=".nbattrs" to the nested fileset. I think this is not the way the war task is supposed to behave, but maybe this is just what nested filesets do, period - I will test to provide more data. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]