finally I wrote C# script to verify fileset..thanks for help..



________________________________
寄件者: "william_mar...@avon-insurance.co.uk" <william_mar...@avon-insurance.co.uk>
收件者: netvampire...@yahoo.com.tw; sures...@infinite.com
副 本: nant-users@lists.sourceforge.net
寄件日期: 2009/3/26(星期四) 下午4:16:48
主 旨: RE: [NAnt-users] fileset Function only work when file exists ?


There is a file::exist() function in NAnt that you could use.  May not be that 
elegant, but you could just create a target that calls this function on all the 
files you need to validate.  You could either hard code the file names to test 
for, or if they are already available (i.e. as the output of compile tasks) you 
may have the values in properties already.  Depending on the structure of your 
build script, you may be able to automatically enumerate the files to check, 
but given that at the moment I’m guessing you are hard coding the list into a 
FileSet, I presume you can just replace that with the list of file::exist calls.
 
Cheers,
 
Bill
 

________________________________

From:netvampire.tw [mailto:netvampire...@yahoo.com.tw] 
Sent: 26 March 2009 02:35
To: Suresh D.
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] fileset Function only work when file exists ?
 
>As a foot note, why would you want to include files in a FileSet that don't 
>exist?
I  want use fileset to make sure my files define in fileset are all exists in 
my physical location before I packed them.
In the past weeks,I fail to packed all files to installshield because I lost 
some files.
I think I could check my files in fileset,isn't it?or is there any other way I 
can do that?
Best regards,
Edwin
 
  
付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! - 馬上體驗! 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


IMPORTANT 
The information contained in this e-mail and any attachments is intended for 
the addressee only
and may contain legally privileged or confidential information. If you are not 
the intended
recipient you must not use, disclose, copy, distribute, alter, or take any 
action in reliance
on the information and Avon Insurance plc will not accept liability for any 
loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or 
representation as to its
accuracy or reliability. If you are not the addressee, please notify us 
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and 
outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and 
ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result 
of any virus being passed on.

Avon Insurance plc (No. 209606).
Registered in England.
Registered Office: Tiddington Road, Stratford-upon-Avon, Warwickshire CV37 7BJ.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British 
Insurers.
For security and training purposes telephone calls may be recorded and 
monitored.


      
______________________________________________________________________________________________________
付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! http://tw.mg0.mail.yahoo.com/dc/landing
------------------------------------------------------------------------------
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to