Hi all,

Iam using ant war task to generate application war file.Iam able to include
all the directories and files needed from application folder,
but iam not able to include application folder itself. I found that out when
i inflated the war file i created i.e all the files in the war file are
inflated without application folder.

Any help would be great.

<war destfile="${project.dir}/${war.name}.war" basedir="${war.dir}" >

<fileset dir="${war.dir}">

<include name="*.jsp"/>

</fileset>

<webinf dir="${webinf}">

<include name="*.xml"/>

<include name="*.tld"/>

<include name="*.dtd"/>

</webinf>

<lib dir="${webinf}/lib">

<include name="*.jar"/>

</lib>

<classes dir="${webinf}/classes">

<include name="**/*.class"/>

<include name="*.properties"/>

</classes>

</war>

Thanks in advance,

anil.

Reply via email to