comparison init20.gradle @ 221:837c9249053f

USASR-2244: Update init20.gradle to pull all changesets from mercurial before attempting to calculate snapshot branch name
author Christopher Springer <springer@nwoca.org>
date Thu, 07 Jul 2016 16:17:18 +0100
parents efa545c6dd65
children b3cb5db317a0
comparison
equal deleted inserted replaced
220:f6150996053f 221:837c9249053f
49 49
50 gradle.ext.hgRepositoryUrl = "" 50 gradle.ext.hgRepositoryUrl = ""
51 try { 51 try {
52 gradle.ext.hgRepositoryUrl = ("hg path".execute().text.split('=') ?: ['', ''])[1].trim() 52 gradle.ext.hgRepositoryUrl = ("hg path".execute().text.split('=') ?: ['', ''])[1].trim()
53 } catch (e) { 53 } catch (e) {
54 }
55 try {
56 if (gradle.ext.bambooPlan) {
57 "hg pull".execute()
58 }
59 } catch (e) {
60 logger.error "exception thrown attempting to pull all changesets from mercurial", e
54 } 61 }
55 62
56 def springModuleTranslator = [ 63 def springModuleTranslator = [
57 'spring-transaction': 'spring-tx', 64 'spring-transaction': 'spring-tx',
58 'spring-web-servlet': 'spring-webmvc', 65 'spring-web-servlet': 'spring-webmvc',