ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Fileset Evaluation
Date Thu, 11 Oct 2007 14:06:21 GMT
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.

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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message