But it looks like I can't put it under if/else. Something like: <if> <${env} = "x"> <then> <fileset includes="*.jar" dir="${WEB_INF}/lib" />
On Wed, Oct 1, 2008 at 8:02 PM, Kamal Chandana Mettananda <[EMAIL PROTECTED]> wrote: > Yes you can. Following is just an example of using .jar files from a given > directory. > > <fileset includes="*.jar" dir="${WEB_INF}/lib" /> > > > > > --------------------------------------- > > Kamal Mettananda > http://lkamal.blogspot.com > > > On Wed, Oct 1, 2008 at 8:31 PM, Mohit Anchlia <[EMAIL PROTECTED]>wrote: > >> Can I also use patterns inside of fileset? >> >> On Tue, Sep 30, 2008 at 10:20 PM, <[EMAIL PROTECTED]> wrote: >> > With conditional pattern ... >> > >> > <war...> >> > <fileset ...> >> > <include name="log4j.xml" if="anAntPatternIsSet"/> >> > >> > >> > Jan >> > >> >>-----Ursprüngliche Nachricht----- >> >>Von: Mohit Anchlia [mailto:[EMAIL PROTECTED] >> >>Gesendet: Dienstag, 30. September 2008 20:54 >> >>An: user@ant.apache.org >> >>Betreff: Packaging war >> >> >> >>I have a war file that gets deployed in tomcat and jboss. I need to >> >>include log4j.xml in WEB-INF/lib only in certain env. How can I >> >>include this lib file selectively while pacakging war file >> >> >> >>--------------------------------------------------------------------- >> >>To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]