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

 


 


付�M才容量�o上限?Yahoo!奇摩��子信箱2.0免�M�o你,信件永�h不必�h! -
<http://tw.rd.yahoo.com/referurl/mail/mail20/tag_hot0103/*http:/tw.mg0.mai
l.yahoo.com/dc/landing> �R上�w��!


______________________________________________________________________
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.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
------------------------------------------------------------------------------
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to