I am getting this warning even though i am using webxml in my ANT task
here is my ANT file
<project name="start" basedir="./">
<property name="web.dir" value="war"/>
<property name="name" value="start"/>
<target name="package" description="Packaging Start WAR">
<war destfile="${name}.war" webxml="${web.dir}/WEB-INF/web.xml">
<fileset dir="${web.dir}">
<include name="**/*.*"/>
</fileset>
</war>
</target>
</project>
Am i missing something. Even though when war is being created, it copies appropriate web.xml in it. but why i am getting this as WARNING
This discussion is related to your problem.
This should fix the warning (I haven’t tried it though). Essentially
excludeweb.xmlfrom thefileset, since this is being specified inwebxmlattribute.