I use ant to build my web application. I am sure it is simple, but I cannot figure out how to tell ant to create a specific folder in the WEB-INF directory and copy the files there.
My ant military task is as follows:
<target name="warItUp" depends="compile"> <war destfile="MyApp.war" webxml="${home.dir}\WEB-INF\web.xml"> <classes dir="${classes.dir}"/> <classes file="${src.dir}/hibernate.cfg.xml"/> <classes dir="${src.dir}" includes="**/*.hbm.xml"/> <fileset dir="${home.dir}/PDFs"> <include name="**/*.pdf"/> </fileset> <fileset dir="${home.dir}/JSPs"> <include name="**/*.jsp"/> </fileset> <fileset dir="${home.dir}/images"> <include name="**/*"/> </fileset> </war>
All elements of the file set work, that is, they include pdf, jsp and image files in the root directory of a military file.
But if I want to create a subdirectory in the WEB-INF directory of a military file and include files in it, how can I indicate this? for example, for example, I wanted to include WEB-INF / TagLibraryDescriptors / MyTagLib.tld in a military file, or if I wanted to create a WEB-INF / JSP folder in my military file and copy all the JSP files there.
Thanks.
Codeclimber
source share