Properties are set by using the <property> tag. You can not set them from the <project> element. <property name="base.dir" value="c:\mydirectory" readonly="true" /> Tony ________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shawn Oster Sent: Wednesday, June 29, 2005 1:52 PM To: [email protected] Subject: [Nant-users] weird basedir issue (bug/bad ant implementation?) Importance: Low All, I'm new to NAnt but definitely not new to any of the Ant-derived tools and in porting an existing Ant script I've come across a weird issue in NAnt. I run the following very basic script: <project name="myapp" basedir="." default="compile" > <!-- Compile --> <target name="compile"> <echo message="Basedir is ${basedir}" /> </target> </project> And I get the error message: "Property 'basedir' has not been set." Which is pretty funny considering it's the very first thing I do in the script. This has worked in all the other Ant tools I've used so I'm left scratching my head on this one. Thanks for any help. Shawn ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
