Hello Gary,
This is what it does. Suppose you have a network share \\test1\share1 which contains some zip files in the following format:
zip1-date1-time1.ok.dll.zip
zip2-date2-time2.ok.dll.zip
and so on.
In case of some setups builds, the binaries are zippd and stored in this location. When we trigger a setup (MSI) build, we need to pick up the latest zip file and extract it to some location. My custom task sorts the share1 folder for the latest contents (zip file) and returns the latest zip file. Also, you can specify the search pattern like you want to sort only for files that have a
OK.dll.zip tag and not witherrors.dll.zip, you can specify that in the pattern attribute of the task and it would only search for those files. Same is with the sort dir task, wherein you can sort for the latest directories from a set of directories. Also, exception handling logic has been introduced into the code so in case of errors, the location and detailed error description is provided.
Please let me know if you need more clarification on this.
Thanks and Regards,
Niranjan
On 7/13/06, Gary Feldman <[EMAIL PROTECTED]> wrote:
Ramya Niranjan wrote:
> In RC3 I see that there is not task to sort a directory for
> subdirectories/files matching a search pattern (wildcard). I have
> created
> one such custom task and tested the same. This works fine. Please
> let me
> know if I could submit this code as a part of the NAnt contribution
> task?
> Thanks and Regards,
> Niranjan
As already indicated, you should submit this to nantcontrib.
However, first you should clarify what it does. Does it produce a
sorted listing of a fileset? Or is sort the wrong word, and you really
meant search?
Gary
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers