The unit test for uptodatefile/comparefile is wrong. It reverses the sense.
I had this fixed locally on my machine once, but I've since lost the changes after the big reorg. It's relatively easy to fix the unit test, then fix the code. - Ants | -----Original Message----- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] On | Behalf Of Giuseppe Greco | Sent: Tuesday, 08 July, 2003 21:39 | To: [EMAIL PROTECTED] | Subject: [nant-dev] Still problems with the <if> and <ifnot> tasks | | | Hi all, | | My be I'm wrong... but I think there is an | issue with the <if> and <ifnot> task. | | Look at the following task: | | <ifnot | uptodatefile="myImage.png" | comparefile="myImage.xcf" | <exec | program="xcftoall" | commandline="--png myImage.xcf myImage.png"/> | </ifnot> | | If I've understood the documentation right, the task | above executes the <exec> task if and only if myImage.png | is older than myImage.xcf, right? | | But this is not the case. To regenerate myImage.png after | myImage.xcf has been modified, I've to rewrite the task | above like this: | | <ifnot | uptodatefile="myImage.xcf" | comparefile="myImage.png" | <exec | program="xcftoall" | commandline="--png myImage.xcf myImage.png"/> | </ifnot> | | I checked out NAnt from CVS last Saturday, so it should | be new enough... | | Any idea? | | Gius_ | | | | ------------------------------------------------------- | This SF.Net email sponsored by: Parasoft | Error proof Web apps, automate testing & more. | Download & eval WebKing and get a free book. | www.parasoft.com/bulletproofapps | _______________________________________________ | nant-developers mailing list [EMAIL PROTECTED] | https://lists.sourceforge.net/lists/listinfo/nant-developers | ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
