Hi Dave- <war ...> <lib dir="WEB-INF/libs"> <exclude name="*.jar"/> <include name="commons-validator-1.3.1.jar"/> </lib> </war>
includes only the commons-validator-1.3.1.jar http://ant.apache.org/manual/CoreTasks/war.html *** includes includesAll files are included when omitted. ******** HTH Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > From: [EMAIL PROTECTED] > To: user@ant.apache.org > Subject: How to restrict what goes into my WEB-INF/lib directory? > Date: Tue, 12 Aug 2008 21:09:07 +0000 > > Hi, > > I want to instruct ant that upon building a WAR file, only include certain > files from my lib directory in the WEB-INF/lib directory. However, this > doesn't seem to be working > > <target name="build-war"> > <mkdir dir="${build}"/> > <war > basedir="${webroot.dir}" > warfile="${build}/${war-file-name}" > webxml="${webInfDir}/web.xml"> > <exclude name="WEB-INF/${build}/**"/> > <exclude name="WEB-INF/src/**"/> > <exclude name="WEB-INF/web.xml"/> > <exclude name="${build}/${war-file-name}"/> > <lib dir="${webInfLibDir}"> > <include name="commons-validator-1.3.1.jar"/> > </lib> > </war> > </target> > > Instead ant seems to be including all the jar files in my ${webInfLibDir} > instead of just the one. Any ideas on why? > > Thanks, - Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Reveal your inner athlete and share it with friends on Windows Live. http://revealyourinnerathlete.windowslive.com?locale=en-us&ocid=TXT_TAGLM_WLYIA_whichathlete_us