svn path=/branches/xmlbuildsystem/; revision=12881
string subpath(path);\r
if ( e.name == "module" )\r
{\r
string subpath(path);\r
if ( e.name == "module" )\r
{\r
- modules.push_back ( new Module ( *this, e, path ) );\r
+ Module* module = new Module ( *this, e, path );\r
+ if ( LocateModule ( module->name ) )\r
+ throw InvalidBuildFileException (\r
+ node->location,\r
+ "module name conflict: '%s' (originally defined at %s)",\r
+ module->name.c_str(),\r
+ module->node.location.c_str() );\r
+ modules.push_back ( module );\r
return; // defer processing until later\r
}\r
else if ( e.name == "directory" )\r
return; // defer processing until later\r
}\r
else if ( e.name == "directory" )\r