----- Original Message ----- >From: "Mike Stephens" <[EMAIL PROTECTED]> >Sent: Tuesday, May 04, 2004 10:24 AM
> I'm using NAnt and NAntContrib .85 from the last day or two from cvs and I > have noticed over the last several days that the relative paths for the > <nant> and <include> tasks are no longer what one would expect them to be. The documentation is, regrettably, generally silent on the determination of the base directory used to resolve relative paths. So the only expectation I have is that I need to try things out to be sure. It would be nice if these were nailed down in the docs. > <property name="portlets.dir" value="portlets"> //portlets directory ... > The problem presents itself here when you try to access any properties that > were set by the parent build file. All of the properties from the parent > build file now are relative to the C:\builds\portlets\announcement directory > instead of from the C:\builds directory. ... > the value of ${portlets.dir} from the parent directory should be equal to > "C:\builds\portlets" but now the value is going do be returned as > "C:\builds\portlets\announcments\portlets". This is not my understanding of properties. Properties are strings. They may happen to contain paths, but they don't act like paths. So when you set the value of ${portlets.dir} to be "portlets", that's exactly what it is in all contexts. So when it's used, it will always be relative to whatever rule is currently in effect for determining the current base/working directory. If you want to set ${portlets.dir} to be a specific path that isn't relative to the current directory, then set it to be an absolute path: <property name="portlets.dir" value="${nant.project.basedir}/portlets" /> Gary ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users