I am running RC3 and the following build source fails:
<?xml version="1.0" encoding="utf-8" ?>
<project name="HotKey" default="build">
<target name="build" >
<property name="empty" value="" />
<echo message="length of empty = ${string::get-length(empty)}" />
<mkdir dir="${empty}" if="${string::get-length(empty) != 0}" />
<echo message="It worked"/>
</target>
</project>
I get the following output:
NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/Projects/Eden4All/test.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: build
build:
[echo] length of empty = 0
BUILD FAILED
C:\Projects\Eden4All\test.build(6,4):
An empty string is not a valid value for attribute 'dir' of <mkdir ... />.
Total time: 0 seconds.
I checked the bug list and did not find this listed. There is a similar bug relating to <asminfo> and if/unless.
1) Has this been fixed in a recent nightly build?
2) If not, do you want me to enter bug at sourceforge?
I can work around for now by embedding <mkdir> in an <if> block.
Thanks
-Tony
_______________________________
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential.
If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.