I think I found a bug related to the <include> task. Check out this very simple example:
[default.build] <?xml version="1.0"?> <project name="whatever" default="testit" xmlns="http://nant.sf.net/release/0.85-rc4/nant.xsd"> <property name="p01" value="I'm in default.build" /> <echo message="Where are you? ${p01}" /> <if test="${file::exists('local.xml')}"> <echo message="Loading another value for p01" /> <include buildfile="local.xml" /> </if> <echo message="Where are you now? ${p01}" /> <target name="testit"> <echo message="That's it!" /> </target> </project> [local.xml] <?xml version="1.0"?> <properties> <property name="p01" value="I'm in local.xml" /> </properties> ::[output]:: [echo] Where are you? I'm in default.build [echo] Loading another value for p01 [echo] Where are you now? I'm in default.build ::[/output]:: -- ----- It so happens that if I remove the xmlns attribute of the <project> element (i.e. <project name="whatever" default="testit">) it works as you'd expect it to: ::[output]:: [echo] Where are you? I'm in default.build [echo] Loading another value for p01 [echo] Where are you now? I'm in local.xml ::[/output]:: Having the xmlns helps because Visual Studio uses that piece of information to provide Intellisense for NAnt build files, once you put nant.xsd in the proper location, but... I'm working without it for the moment. Has anybody else seen this happen? Best regards LĂșcio ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users