You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Scott Purcell <sp...@vertisinc.com> on 2004/11/01 22:06:07 UTC
.war file question
Hello,
I am creating a war application using ant and ran into a perculiar problem. I need to create a 'empty' dir in the webapp and I cannot figure out how to do it? Does anyone know if I can achieve this, or not.
So the file structure would be:
application
application/WEB-INF
application/tmpfolder
appliction/web.xml
etc.
Here is the code that creates all else just fine.
<war
destfile="${build.dir}/dist/application.war"
webxml="${build.dir}/src/application/WEB-INF/web.xml">
<fileset dir="${build.dir}/src/application" includes="index.html" />
<classes dir="${build.dir}/build" />
<lib dir="${build.dir}/src/lib" casesensitive="yes">
<include name="jspsmart.jar" />
<include name="commons-fileupload-1.0.jar" />
<include name="servlet.jar" />
<include name="log4j-1.2.8.jar" />
</lib>
</war>
Thanks,
Scott