OK, I've worked this out for myself (and I have uncovered a bug imo).
I am using the cvs-checkout task to create a new local workspace. The
fileset was seemingly being ignored as, by default, files which do not
exist are not included.
I solved that problem by adding asis="true" to the <includesfile>
element.
However, there is still a flaw in the implementation, in my opinion. If
the <module> attribute is missing, the cvs-checkout task tries to find
the cvs information in the current folder (using SharpCvsLib btw, even
if usesharpcvslib="false"!). If there is none, it throws an error, even
though our fileset contains our list of modules.
A workaround for this behaviour is to assign one file from the fileset
to the module attribute, and then the rest will be added to the cvs
commandline as one would expect.
Regards,
Alex Roebuck.
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roebuck,
Alex
Sent: Thursday, December 13, 2007 4:00 PM
To: nant-users@lists.sourceforge.net
Subject: SPAM WARNING!: [NAnt-users] Using a Fileset with
cvs-checkout
How does a fileset work with cvs-checkout? I'd like to use one
to restrict which folders/modules are checked out.
For example:
<target name="checkout" description="Checkout source from CVS">
<cvs-checkout cvsroot="${cvs.root.dac}" module="Code"
usesharpcvslib="false">
<fileset>
<includesfile
name="a_list_of_modules.txt" />
</fileset>
</cvs-checkout>
</target>
I've tried all sorts of syntax and combinations, and the
cvs-checkout task appears to totally ignore the fileset.
If I omit the "module" parameter, the task fails. If I include
one, it checks out every folder within it, regardless of the fileset.
Thanks,
Alex Roebuck.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users