(compilerOptions *etree.Element)
| 68 | } |
| 69 | |
| 70 | func processCompilerOptions(compilerOptions *etree.Element) { |
| 71 | searchPaths := compilerOptions.SelectElement(consts.XmlTagNameSearchPaths) |
| 72 | if searchPaths == nil { |
| 73 | return |
| 74 | } |
| 75 | otherUnitFiles := searchPaths.SelectElement(consts.XmlTagNameOtherUnitFiles) |
| 76 | if otherUnitFiles == nil { |
| 77 | otherUnitFiles = createTagOtherUnitFiles(searchPaths) |
| 78 | } |
| 79 | value := otherUnitFiles.SelectAttr("Value") |
| 80 | currentPaths := strings.Split(value.Value, ";") |
| 81 | currentPaths = GetNewPaths(currentPaths, false, env.GetCurrentDir()) |
| 82 | value.Value = strings.Join(currentPaths, ";") |
| 83 | } |
| 84 | |
| 85 | func createTagOtherUnitFiles(node *etree.Element) *etree.Element { |
| 86 | child := node.CreateElement(consts.XmlTagNameOtherUnitFiles) |
no test coverage detected