I think there might be problems with the fileset functionality:
A couple of examples:
1) In a directory "c:\build\pn\bin" I have three dlls:
SciLexer.dll, libexpat.dll and libexpatw.dll
<zip zipfile="test.zip">
<fileset>
<includes name="c:\build\pn\bin\*.dll" />
</fileset>
</zip>
This task produces this output:
zip:
[zip] Zipping 6 files to C:\build\pn\test.zip
And places two copies of each file in the directory of the zip file (which I
didn't think was valid behaviour for zip files anyway?). Using the task with
a basedir attribute, however, seems to work:
<zip zipfile="test.zip">
<fileset basedir="c:\build\pn\bin">
<includes name="*.dll" />
</fileset>
</zip>
zip:
[zip] Zipping 3 files to C:\build\pn\test.zip
2) With the same directory, this task:
<delete>
<fileset>
<includes name="c:\build\pn\bin\*.dll" />
</fileset>
</delete>
Produces:
clean:
[delete] Deleting 6 files
Oh oh, there are only three files so this of course throws up errors about
not being able to delete files.
Strangely, earlier when I ran this the build file refused to find any dlls,
or any files at all more to the point - which is what I was about to report
here. Now it seems to be finding double the number I expected. Most
worrying. Switching to the basedir attribute does fix this.
I'm concerned that earlier I was seeing:
[delete] Deleting 0 files
And with no changes to the script or directory contents this has started
working. Most probably my fault, but I can't imagine why. Anyway, it still
looks like there are problems with the FileSet stuff, anyone else seen this?
--
Simon Steele
Research Engineer - Softel Ltd.
tel: +44 118 984 2151 / web: http://www.softel.co.uk/
__________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service.
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers