Try putting this inside your staff.xml (around the rest of the text): <cb:scope xmlns:cb="urn:ccnet.config.builder"> ... </cb:scope>
Basically you need to have xmlns:cb="urn:ccnet.config.builder" in each and every xml file. I think I had the same error till I figured that out. Arieh On Feb 25, 10:32 pm, CinnamonDonkey <[email protected]> wrote: > Hi All, > > I seem to be having problems with DEFINE and INCLUDE in the config > file when trying to split up my single BIG config file into multiple > files. > > Here's a snippet... > > ccnet.config: > ------------------ > > <cruisecontrol xmlns:cb="urn:ccnet.config.builder"> > <cb:define name="MAILGROUPS"> > <groups> > <group name="$(MAILGROUP_BUILDMASTER)" notification="always"/> > </groups> > </cb:define> > > <cb:include href="staff.xml" /> > > <project name="AProject" queue="AProject"> > . > . > . > <publishers> > <email from="$(MAILSOURCE)" mailhost="$(MAILHOST)" > includeDetails="TRUE"> > <users> > <cb:User1 group="$(MAILGROUP_BUILDMASTER)"/> > <cb:User2l group="$(MAILGROUP_DEVELOPERS)"/> > </users> > <cb:MAILGROUPS/> > <modifierNotificationTypes> > <NotificationType>Fail</NotificationType> > </modifierNotificationTypes> > </email> > </publishers> > </project> > </cruisecontrol> > > staff.xml: > ------------- > > <cb:define name="User1"> > <user name="User1" group="$(Group)" address="[email protected]"/> > </cb:define> > > <cb:define name="User2"> > <user name="User2" group="$(Group)" address="[email protected]"/> > </cb:define> > > As a single file this is fine! But moving the user defines into a > separate file creates problems and the config can't be loaded because > the cb namespace is unknown. > > I've tried allsorts to get around this with no success... is this > possible? Does someone know how to do this? > > Cheers, > Shaun
