Howdy, This question has both tomcat and ant facets, as you mentioned ;) For the Ant part: you can define patternsets for your different apps in one file, giving each patternset a different ID obviously. You can then include this file in your build file, and refer to the patternset using the refid attribute.
The "tomcat" part of my response has more to do with good development organization: don't use one central lib directory. Obviously, this is just a suggestion, but every single time I've been on a project/team where this was used, we got burned. More hassle than it's worth. Disk space is cheap. Use as separate a directory tree as possible for each webapp. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Sunday, March 30, 2003 6:18 AM >To: [EMAIL PROTECTED] >Subject: Library management for Tomcat using ant > >Hi there, > >I know this is more a question about ant, but maybe a tomcat user here has >faced the same issue as I do when using a central lib directory for all of >the JAR files in the various webapps: > >In the prepare task I copy the JAR files I need for my webapp into the >WEB-INF/lib folder in the build path: >=============== ><copy todir="${build.home}/WEB-INF/lib"> > <fileset dir="${lib.home}"> > <include name="cos.jar" /> > <include name="cos2.jar" /> > .... > </fileset> ></copy> >================= > >However, this library listing is the only thing which distinguishes the >various build.xml files for my different webapps. >I'd prefer to have only ONE build.xml file for all of my webapps so they >all have the same structure. > >How can I import a fileset like above from a separate filename? >(so I can have >*) ONE build.xml for all of my webapps and >*) a specific lib.xml for each of my webapps? > >thx alot >Johannes This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
