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

Reply via email to