Bill,

I've started work on a set of fileset function in NAntContrib (see http://nantcontrib.sourceforge.net/nightly/latest/help/functions/index.html).

If it would help, I could add a function in to convert a fileset to a string with optional delimiter, something like:

        fileset::to-string('wxs', ',')

which would return a comma separated list of all the files in the fileset.

Let me know if this would be a good thing to have.

Cheers,

(a different) Bill



"Arnette, Bill" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

13/10/2005 15:29

       
        To:        <nant-users@lists.sourceforge.net>
        cc:        
        Subject:        [Nant-users] Pass fileset to exec



Is there any way to pass a fileset to the <exec> task?

I came up with the following work-around[1], but is there a less verbose
way?

Bill


[1]  build up a property in a <foreach> task.
<fileset id="wxs">
  <include name="*.wxs"/>
  <include name="ui/*.wxs"/>
  <include name="ui/mondo/*.wxs"/>
</fileset>

<target name="candle">
  <property name="wxs_files" value=""/>
  <foreach item="File" property="file">
     <in>
        <items refid="wxs"/>
     </in>
     <do>
        <property name="wxs_files" value="${wxs_files} ${file}"/>
     </do>
  </foreach>
  <exec program="candle.exe">
     <arg line="${wxs_files}"/>
  </exec>
</target>



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


                                                                                                                               
As detailed in the company handbook, Avon Insurance has the facility to
monitor and read both incoming and outgoing communications by e-mail.

A copy of the company handbook can be found here: http://www.ho.nfumutual.co.uk/mutualnet/HANDBOOK/ITPolicies/ITSecure.htm




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: Arden Street, Stratford upon Avon, Warwickshire CV37 6WA.
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.

Reply via email to