Oh, I didn't realize Nant only supported a subset of what Ant does.
Basedir is one of the standard properties of the <project> element in
Ant.  Weird, I wonder why the devs decided not to include this standard
functionality.

Thanks for the heads up on the missing feature!

> -----Original Message-----
> 
> 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 
>  
> ________________________________
> 
> 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

Reply via email to