From 6254a72b5c35f379f3c7caaa6cf25867fbeab588 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 10 Aug 2014 12:35:17 +0000 Subject: [PATCH] Minor improvements to other groovy scripts. Fix bug with missing git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1617102 13f79535-47bb-0310-9956-ffa450edef68 --- extra-targets.xml | 17 ++++++++++------- solr/common-build.xml | 6 +++--- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/extra-targets.xml b/extra-targets.xml index 2c76ebd9617..7fecf15b924 100644 --- a/extra-targets.xml +++ b/extra-targets.xml @@ -101,6 +101,7 @@ inline="true" conf="default" transitive="true" pathid="svnkit.classpath"/> + withKeywords.add(convertRelative(file)); } as ISVNPropertyHandler); - def convertSet2String = { - set -> set ? ('* ' + set.join(project.getProperty('line.separator') + '* ')) : null + def setProjectPropertyFromSet(prop, set) { + if (set) { + properties[prop] = '* ' + set.join(properties['line.separator'] + '* '); + } }; - project.setProperty('svn.checkprops.failed', convertSet2String(missingProps)); - project.setProperty('svn.keywords.failed', convertSet2String(withKeywords)); - project.setProperty('svn.unversioned.failed', convertSet2String(unversioned)); - project.setProperty('svn.changed.failed', convertSet2String(changed)); + setProjectPropertyFromSet('svn.checkprops.failed', missingProps); + setProjectPropertyFromSet('svn.keywords.failed', withKeywords); + setProjectPropertyFromSet('svn.unversioned.failed', unversioned); + setProjectPropertyFromSet('svn.changed.failed', changed); ]]> diff --git a/solr/common-build.xml b/solr/common-build.xml index c8c2a8c30a9..3655ca5b2aa 100644 --- a/solr/common-build.xml +++ b/solr/common-build.xml @@ -320,16 +320,16 @@