In order to use the global parameters from the root build file, you must include it in each subproject build file with:
<include buildfile="RootBuildFile.build" /> Also, although most concepts are the same as with Ant, the implementation and usage may be different. There is a wide difference between available tasks. Noel -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Debowski Sent: Saturday, July 22, 2006 11:45 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] NAnt vs. Ant little difference Hi, I was Ant user and recently switched do NAnt. I wish to ask if some little diffcence between them I have observed, is a feature, bug or simple my mistake. I used to write some global parameters (<path>) in root build file: <?xml version="1.0" encoding="UTF-8" ?> <project name="frs.src" default="build"> <property name="frs.root" location=".." /> <property name="frs.source" location="${frs.root}/src" /> <path id="common.include.path"> <pathelement path="${frs.source}/cmn/template" /> </path> and then use them in many other subprojects: <?xml version="1.0" encoding="UTF-8" ?> <project name="FrsAstronomy" default="error"> <target name="build"> <dcc srcfile="frs/Tools/Tools.dpr" debug="false"> <includepath refid="common.include.path" /> </dcc> </target> </project> This works fine in Ant, but doesn't work at all in NAnt. "common.include.path" is not defined. It seems that <path> elements are local only. Is it true? -- Adrian "Chairman" Debowski http://www.artifexmundi.com/ ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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