Bugs item #1075959, was opened at 2004-11-30 13:28 Message generated for change (Settings changed) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1075959&group_id=31650
Category: Core Group: cvs >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: Giuseppe Greco (j3d) Assigned to: Gert Driesen (drieseng) Summary: <call> task Initial Comment: Giving the task <call target="myTarget" unless="${file::exists('myDirectory/myFile.cs')}" /> "myTarget" is invoked when the file "myDirectory/myFile.cs" does exist, while giving the task <call target="myTarget" if="${file::exists('myDirectory/myFile.cs')}" /> "myTarget" is invoked when the file "myDirectory/myFile.cs" does *NOT* exist. ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2004-11-30 21:33 Message: Logged In: YES user_id=707851 Giuseppe, I can't see anywrong here. What version of NAnt are you using ? (Although I'm sure nothing changed here recently). Can you try to execute the following build file : <project name="target-test" default="build"> <target name="build"> <touch file="myfile.cs" /> <call target="myFileExists" if="${file::exists('myFile.cs')}" /> <delete file="myfile.cs" /> <call target="myFileDoesNotExist" unless="${file::exists('myFile.cs')}" /> </target> <target name="myFileExists"> <echo message="${target::get-current- target()} executed" /> </target> <target name="myFileDoesNotExist"> <echo message="${target::get-current- target()} executed" /> </target> </project> This should result in the following build output : myFileExists: [echo] myFileExists executed [delete] Deleting file D:\nant-test- projects\ok\NAnt\target\myfile.cs. myFileDoesNotExist: [echo] myFileDoesNotExist executed ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1075959&group_id=31650 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers