Bugs item #1766515, was opened at 2007-08-02 22:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1766515&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tasks Group: 0.85 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Francois (atomyk) Assigned to: Nobody/Anonymous (nobody) Summary: uptodate does't work with foreach Initial Comment: This piece of code doesn't work. It is not convenient to use uptodate inside of foreach. In the following example, the myfile property gets the full path instead of just the file name. Because of that, it is impossible to reuse the filename inside the uptodate element... <target name="processCompatibility" description="Verify each files in the bin folder and update compatibility file if need be."> <echo message="Processing binary files to update Compatibility files" /> <foreach item="File" property="myfile"> <in> <items basedir="${Bin.Path}"> <include name="*.ocx" /> <include name="*.dll" /> </items> </in> <do> <echo message="Verifying ${myfile} for Compatibility update" /> <uptodate property="myfile.uptodate"> <sourcefiles basedir="${Bin.Path}"> <include name="${myfile}" /> </sourcefiles> <targetfiles basedir="${Compat.Path}"> <include name="Versioning for ${myfile}" /> </targetfiles> </uptodate> </do> </foreach> </target> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1766515&group_id=31650 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers