comparison init.gradle @ 164:7474ff33a1ba

replace @ with - in branch names
author Dave Smith <smith@nwoca.org>
date Thu, 16 Jan 2014 18:51:28 +0000
parents c5f09d617715
children 0975c343fafe
comparison
equal deleted inserted replaced
163:c5f09d617715 164:7474ff33a1ba
41 gradle.ext.branchStream = it 41 gradle.ext.branchStream = it
42 } 42 }
43 } 43 }
44 } 44 }
45 45
46 gradle.branchName = gradle.branchName.replace('@','-')
46 loadEnvironments() 47 loadEnvironments()
47 48
48 gradle.environment.put('hgRepositoryUrl',gradle.hgRepositoryUrl) 49 gradle.environment.put('hgRepositoryUrl',gradle.hgRepositoryUrl)
49 gradle.environment.put('branchName',gradle.branchName) 50 gradle.environment.put('branchName',gradle.branchName)
50 gradle.environment.put('branchStream',gradle.branchStream) 51 gradle.environment.put('branchStream',gradle.branchStream)
272 if(gradle.branchStream == 'feature') { 273 if(gradle.branchStream == 'feature') {
273 add(new org.apache.ivy.plugins.resolver.URLResolver()) { 274 add(new org.apache.ivy.plugins.resolver.URLResolver()) {
274 name = 'ssdt-branches' 275 name = 'ssdt-branches'
275 m2compatible = false 276 m2compatible = false
276 def url = "${ssdtArtifactory}/ssdt-branches" 277 def url = "${ssdtArtifactory}/ssdt-branches"
277 def filter = ";ssdt-branch.branchName+=${gradle.branchName.replaceAll('/','-')}" 278 def filter = URLEncoder.encode(";ssdt-branch.branchName+=${gradle.branchName.replaceAll('/','-')}")
278 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]${filter}") 279 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]${filter}")
279 addIvyPattern("${url}${filter}/[organization]/[module]/ivy-[revision].xml") 280 addIvyPattern("${url}${filter}/[organization]/[module]/ivy-[revision].xml")
280 checkmodified = true 281 checkmodified = true
281 changingMatcher = 'regexp' 282 changingMatcher = 'regexp'
282 changingPattern = /\d{14}/ 283 changingPattern = /\d{14}/