Yep.

----- 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:27:28 AM
Subject: RE: [NAnt-users] File::Exists with a fileset

I'm surprised a wildcard doesn't work with file::exists. I assume you
are asking because you tried it and it didn't work.

BOb


-----Original Message-----
From: Eric Fetzer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 29, 2007 1:25 PM
To: Bob Archer; Nant Users
Subject: Re: [NAnt-users] File::Exists with a fileset

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


      
____________________________________________________________________________________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/

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