That's exactly what I did, Bob, I was just wondering if there was a cleaner way 
to do it.

----- Original Message ----
From: Bob Archer <[EMAIL PROTECTED]>
To: Eric Fetzer <[EMAIL PROTECTED]>; Nant Users 
<nant-users@lists.sourceforge.net>
Sent: Thursday, November 29, 2007 11:19:23 AM
Subject: RE: [NAnt-users] File::Exists with a fileset

I don't think so... but, you could use foreach with a file set... and
set a property if the foreach runs... Sort of like:

<property name="fileisthere" value="false" />

<foreach type="File" property="filename">
    <in>
        <items>
            <include name="MyPattern.*" />
        </items>
    </in>
    <do>
        <property name="fileisthere" value="true" />
    </do>
</foreach>

In the above items is actually a fileset type. Once you have the value
of fileisthere you can use this in your if rather than file::exists.

BOb


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
Fetzer
Sent: Thursday, November 29, 2007 1:04 PM
To: Nant Users
Subject: [NAnt-users] File::Exists with a fileset

Is it possible to use File::Exists with a fileset or at least use
wildcards in the place of the filename?



________________________________________________________________________
____________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

------------------------------------------------------------------------
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to