Is there any way to create a property whose value is the list of resolved files in a fileset, or failing that to create a fileset from a property?
What am I trying to do? I am trying to write a build file for a WiX project that lists the source/target files only once and has source file/obj file dependency checking. Here is my current build file: <?xml version="1.0"?> <project name="Dahmer" xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" default="all"> <property name="SOURCES" value="videopro.wxs SharedComponents.wxs Graphs.wxs"/> <property name="WIXOBJS" value="videopro.wixobj SharedComponents.wixobj Graphs.wixobj" /> <property name="MSI" value="VideoPro.msi" /> <fileset id="OBJS"> <include name="*.wixobj"/> </fileset> <target name="all" depends="compile"/> <target name="compile" depends=""> <exec program="candle" commandline="${SOURCES}"/> <exec program="light" commandline="${WIXOBJS} -out ${MSI}"/> </target> </project> This works fine, but there is no file dependency checking. How can I add file dependency checking without adding the file names to multiple places in the build file? If I could create a fileset given a property, I could use the up-to-date task for that. Or, if I could create property from a fileset, the SOURCES property could be created from a fileset. In the old days of MAKE we could do something like (ignoring inference rules): SOURCES=a.wxs b.wxs c.wxs WIXOBJS=a.wixobj b.wixobj c.wixobj VideoPro.msi : ${WIXOBJS} light ${WIXOBJS} -out VideoPro.msi a.wxs : a.wixobj candle a.wxs b.wxs : b.wixobj candle b.wxs c.wxs : c.wixobj candle c.wxs How do we do that with Nant? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
