1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

scanNextLineForParam -> docuEnd

since this naming is more open, e.g. when dealing with header comments we do not
scan the next line for a parameter.
This commit is contained in:
Marcus Holl 2018-10-29 07:45:09 +01:00
parent 9532e1c05d
commit 77419882dd

View File

@ -130,7 +130,7 @@ class Helper {
boolean docu = false, boolean docu = false,
value = false, value = false,
scanNextLineForParamName = false docuEnd = false
def docuLines = [], def docuLines = [],
valueLines = [] valueLines = []
@ -138,8 +138,8 @@ class Helper {
f.eachLine { f.eachLine {
line -> line ->
if(scanNextLineForParamName) { if(docuEnd) {
scanNextLineForParamName = false docuEnd = false
// first we check if we have a header comment for a step // first we check if we have a header comment for a step
Matcher headerMatcher = (line =~ /(def|void)\s*call\s*\(/ ) Matcher headerMatcher = (line =~ /(def|void)\s*call\s*\(/ )
@ -190,7 +190,7 @@ class Helper {
if(docu && line.trim() ==~ /^\*\//) { if(docu && line.trim() ==~ /^\*\//) {
docu = false docu = false
value = false value = false
scanNextLineForParamName = true docuEnd = true
} }
} }
} }