Commit aee9d6b7 authored by Jack Jansen's avatar Jack Jansen

Allow recursive searh entries by ending the pathname in ":*".

parent cb9b1ebe
......@@ -47,11 +47,16 @@ class ProjectBuilder:
if not type(keyvalues) in (type(()), type([])):
raise Error, "List or tuple expected for %s"%key
for curkeyvalue in keyvalues:
self.dict[key] = curkeyvalue
if os.path.isabs(curkeyvalue):
self.dict['pathtype'] = 'Absolute'
else:
self.dict['pathtype'] = 'Project'
if curkeyvalue[-2:] == ':*':
curkeyvalue = curkeyvalue[:-2]
self.dict['recursive'] = 'true'
else:
self.dict['recursive'] = 'false'
self.dict[key] = curkeyvalue
curkeyvalueresult = self._generate_one_value(datasource, dataname)
result = result + curkeyvalueresult
finally:
......@@ -59,6 +64,8 @@ class ProjectBuilder:
self.dict[key] = keyvalues
self.dict['pathtype'] = None
del self.dict['pathtype']
self.dict['recursive'] = None
del self.dict['recursive']
else:
# Not a multi-element rule. Simply generate
result = self._generate_one_value(datasource, dataname)
......
......@@ -4,6 +4,6 @@
<SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING>
<SETTING><NAME>PathRoot</NAME><VALUE>%(pathtype)s</VALUE></SETTING>
</SETTING>
<SETTING><NAME>Recursive</NAME><VALUE>false</VALUE></SETTING>
<SETTING><NAME>Recursive</NAME><VALUE>%(recursive)s</VALUE></SETTING>
<SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING>
</SETTING>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment