ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject AW: A little help with the <war> task...
Date Thu, 02 Oct 2003 09:17:03 GMT
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


Mime
View raw message