--- Steve Loughran <[EMAIL PROTECTED]> wrote:
> Knuplesch wrote:
> > If I define a fileset via a patternset and a id
> like that:
> >
> > <patternset id="dopecopy.configpattern.kunde">
> > <exclude name="javahelp/**"/>
> > <exclude name="imagesText/**"/>
> > <exclude name="dcpcall.xml"/>
> > <exclude name="mffafp.pro"/>
> > </patternset>
> >
> > <fileset id="dopecopy.configfiles.kunde"
> dir="${dope.configdir.kunde}">
> > <patternset
> refid="dopecopy.configpattern.kunde"></patternset>
> > </fileset>
> >
> > And now I add another file to the fileset-dir:
> ${dope.configdir.kunde}
> > E.g. like that:
> >
> > <jar
> destfile="${dope.configdir.kunde}/editorHelp.jar">
> > <fileset
> dir="${dope.configdir.kunde}/javahelp/editor" />
> > </jar>
> >
> >
> > Will editorHelp.jar be copied or not?
> >
> > <copy todir="${dope.target.dir}/config">
> > <fileset refid="dopecopy.configfiles.kunde"
> />
> > </copy>
> >
> > Is editorHelp.jar part of the fileset, even if it
> did not exist, when I created the fileset?
> > Why?
> > In my case, I think it was part of the fileset and
> I don't understand why!
> >
> > In other words:
> > When will filesets be evaluated? Waht are the
> rules?
>
> They're generally evaluated the first time theyre a
> used, and (probably)
> not re-evaluated.
>
Actually IIRC FileSet and DirSet are (by virtue of
their common parent class) implemented such that each
use re-scans the filesystem, except in the rare event
that the DirectoryScanner is requested concurrently
from separate threads. It would probably be pretty
easy to concoct a "frozen" ResourceCollection, but as
a workaround wrapping the fileset in a <union> and
forcing an evaluation with e.g. <pathconvert> or
<resourcecount>, then relying on its cache=true
default setting to cache those results...
-Matt
> to get reevaluation in, dont cache the fileset but
> explicitly redeclare
> it again.
>
> --
> Steve Loughran
> http://www.1060.org/blogxter/publish/5
> Author: Ant in Action http://antbook.org/
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today!
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]