Thanks. That fixed it.
-Rob A
-----Original Message-----
From: Antoine Lévy-Lambert [mailto:antoine@antbuild.com]
Sent: Thursday, October 02, 2003 2:17 AM
To: Ant Users List
Subject: AW: A little help with the <war> task...
Hi Robert,
the <webinf/> and <classes/> nested elements are already fileset(s). So you
should write
<webinf dir="${etc.dir}"
includes="*struts*,tiles*,validation*"/>
<classes dir="${build.classes.dir}"
excludes="**/ejb/*"/> -----Ursprüngliche Nachricht-----
Von: Anderson, Robert H - MWT [mailto:Anderson.Robert@menlolog.com]
Gesendet: Donnerstag, 2. Oktober 2003 00:54
An: 'user@ant.apache.org'
Betreff: A little help with the <war> task...
I am having trouble creating a war file with Ant 1.6alpha. Here is the
target in my build.xml....
<target name="war">
<war destfile="${war.file}" webxml="${etc.dir}/web.xml">
<fileset dir="${web.dir}"/>
<lib dir="${lib.dir}"/>
<webinf>
<fileset dir="${etc.dir}"
includes="*struts*,tiles*,validation*"/>
</webinf>
<classes>
<fileset dir="${build.classes.dir}"
excludes="**/ejb/*"/>
</classes>
</war>
</target>
And I get the following error...
Buildfile: build.xml
war:
BUILD FAILED
C:\Documents and Settings\rhanderson\My
Documents\work\usr\rhanderson\ccb-web\build.xml:26: The <zipfileset> type
doesn't support the nested "fileset" element.
Any help would be appreciated. Thanks,
Robert Anderson
Sr. Web Administrator
Menlo Logistics
(503) 450-2880 desk
(503) 781-4726 cell
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|