> The method Martin proposed has been discussed before. It would be tidier
> from a user point of view to allow adding to filesets without a seperate
> task - maybe using the mode attribute on the fileset itself
>
> <fileset id="f1" basedir="c:\temp\foo" mode="append | replace" > <!--
re-define f1 fileset -->
> <includes name="item1"/>
> <includes name="item2"/>
> </fileset>
hmm - mode attribute could be maybe a little tidier than mine approach...
> Martin - how does your implementation perform the merging ? Do you merge
the raw xml of the old "f1" fileset with that of the new definition and
instantiate a new fileset instance based on that ?
currently I do it as close as possible to current implementation. So 2nd
fileset replace the 1st one completely and you have to add one more line to
append to it:
<fileset id="docassemblies" basedir="${output.dir}">
<includesFileset refid="docassemblies"/>
<includes name="${filename}.dll"/>
</fileset>
that means, every <fileset> is in fact new data type definition and
appending is the therefore more complicated.
As a sideefect to enable this I have to enable also use of type-defs in
TaskContainer (used in <if> and <foreach> )
> Ideally this would work for all "dataTypes" - not just filesets. If its
doable for filesets doing it for all datatypes won't be much more work.
Agree :-)
Martin
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers