Update 使用pom信息更新当前依赖中使用的属性
(dep *PomDependency)
| 225 | |
| 226 | // Update 使用pom信息更新当前依赖中使用的属性 |
| 227 | func (p *Pom) Update(dep *PomDependency) { |
| 228 | var ref *Property |
| 229 | dep.GroupId, ref = p.update(dep.GroupId) |
| 230 | if ref != nil { |
| 231 | dep.RefProperty = ref |
| 232 | } |
| 233 | dep.Version, ref = p.update(dep.Version) |
| 234 | if ref != nil { |
| 235 | dep.RefProperty = ref |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | var propertyReg = regexp.MustCompile(`\$\{[^{}]*\}`) |
| 240 |
no test coverage detected