ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moore, Kent" <>
Subject RE: Help with war task
Date Thu, 04 Jun 2009 13:03:11 GMT
Setup different lib dir definitions in the war task and collect the
references from where ever they happen to be:

            <lib dir="${lib.dir}">
                <patternset refid="dependent.libraries"/>
            <lib dir="${other.lib.dir}">
                <patternset refid="other.libraries"/>
            <lib dir=".">
                <include name="foo.jar"/>

The combined set of references from the three folders will end up in the
war file's WEB-INF/lib directory.


-----Original Message-----
From: Chris Green [] 
Sent: Thursday, June 04, 2009 8:39 AM
To: Ant Users List
Subject: Re: Help with war task

Treat as two seperate tasks

1. Merging jar's into one directory

2. Create war file

On Thu, Jun 4, 2009 at 1:35 PM, Yellen Seram

> Hi all,
> I'm trying to create a war file using the ant war task.
> The problem is that I am not aware as to how I can link multiple
> locations to the lib dir inside war.
> Like for example, I have some jars in one folder and some other jars
> some another folder and I want to put the jars from these two
> inside the lib dir of WEB-INF when the war is created.
> I'd really appreciate some help :)
> Thanks and regards,
> Yellen Seram
> ***The information transmitted is intended only for the person or
entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review,retransmission,dissemination or other use of, or
> of any action in reliance upon, this information by persons or
> other than the intended recipient is prohibited. If you received this
> error, please contact the sender and delete the material from any
> computer.***
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Chris Green
E-Mail :
Mob : 07779 157247


The information contained in this message is proprietary and/or confidential. If you are not
intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, 
distribute or use the message in any manner; and (iii) notify the sender immediately. In addition,

please be aware that any message addressed to our domain is subject to archiving and review
persons other than the intended recipient. Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message