Yes, I should have use the modern IDE to see the available attributes.

Based on http://ant.apache.org/manual/CoreTypes/fileset.html, how do
we know the element supports "refid" attribute?

When run with <lib refid="base.path" />, Ant complaints that the
"base.path doesn't denote a zipfileset or a fileset"

Did I miss out anything here?


On 7/10/07, Prashant Reddy <[EMAIL PROTECTED]> wrote:
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
--

-Prashant

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--

Hez

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to