ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Reddy <prash...@pramati.com>
Subject Re: Create WEB-INF/lib based on path-structure
Date Tue, 10 Jul 2007 06:12:05 GMT
On Tue, 2007-07-10 at 14:06 +0800, hezjing wrote:
> Hi Prashant
> 
> Thanks for the WAR task description.
> 
> If I have a path-like structure called "base.path",
> 
>   <path id="base.path">
>   <fileset dir="lib">
>   <include name="**/*.jar"/>
>   </fileset>
>   </path>
> 
> How can I referencing "base.path" directly in <war> task or it's
> nested <lib> element?

WAR task specifies in the documentation that : 

"The nested lib element specifies a FileSet. All files included in this
fileset will end up in the WEB-INF/lib directory of the war file."

So try : 
<lib refid="base.path">

Actually if you are using modern IDE (like IDEA) to edit your build.xml
typing "<lib" should fire-up all possible options to auto-complete. 

Hope this helps.

> 
> 
> 
> 
> On 7/10/07, Prashant Reddy <prashant@pramati.com> wrote:
> > Take a look at 'war' task at :
> > http://ant.apache.org/manual/CoreTasks/war.html
> >
> > Examples given in this page should address your concern.
> >
> > On Tue, 2007-07-10 at 10:21 +0800, hezjing wrote:
> > > Hi
> > >
> > > I have a path structure containing a list of JARs, saved at the shared
> > > repository.
> > >
> > > How can I inlucde these JARs into WEB-INF/lib when creating a WAR
> > > file, without copying the JARs into local project directory?
> > >
> > >
> > --
> >
> > -Prashant
> >
> > Don't upload, just share : www.dekoh.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> 
> 
-- 

-Prashant

Don't upload, just share : www.dekoh.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message