import-bot (20212) [Avatar] Offline
[Originally posted by mtedone]

Hi, this question seems to very a bit silly as I'm running my builds since
months succesfully now, but tonight a question came to my mind: I'm using the
war/unwar task to deploy a war file under Tomcat.

My war task looks like the following:

<target name="prod-war" >
description="Creates the war file ready to be deployed" >

<war destfile="${dist.bin.dir}/${}.war">

<fileset dir="${web.dir}" includes="**/*.*" />
<webinf dir="${xml.dir}" >
includes="**/*.*" />
<webinf dir="${tld.dir}" includes="**/*.*" />
<webinf dir="${dtd.dir}" includes="**/*.*" />
<classes dir="${txt.dir}" includes="**/*.properties" />
<lib dir="${lib.dir}" includes="**/*.jar" />
<lib dir="${dist.bin.dir}">
includes="${}_${project.version}.jar" />

and my unwar task looks like the following:

src="${dist.bin.dir}/${}.war" />

So far so good: my application folder is created under Tomcat with
WEB-INF/classes and WEB-INF/lib (the latter containing a jar with the
application's logic) and all the JSP and HTML pages in place.

I had a look at the war file and inside it doesn't contain any WEB-INF/classes
and WEB-INF/lib folder. So my question is: does the war task keep in memory
the information provided with <webinf>, <classes>, and <lib> elements? If the
war file doesn't contain those folders, but they are present under the newly
created folder under Tomcat, how is it possible? It means (and actually it is
so) that my war file is not hot deployable.


import-bot (20212) [Avatar] Offline
Re: War task
[Originally posted by erikhatcher]

Sorry for the delayed reply. I'm a bit confused. The <war> task you showed
will in fact contain
WEB-INF/lib and WEB-INF/classes "directories". Why you are not seeing it is
the issue here. Are
you using WinZip to look in there? Or what tool?