Skip to content

Conversation

DorianZimmer-LM
Copy link

Print an error message if the packaging properties file doesn't exist.

Signed-off-by: Dorian Zimmer <dz@living-mainframe.de>
Copy link
Member

@M-DLB M-DLB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @DorianZimmer-LM - Thanks for your contribution. I agree with the change.
Please, be aware that there is a conflict in your PR, since we moved the retrieveBuildResultProperty procedure definition to a different place in the script. I guess you just want to remove it from your file, and the PR should be fine.
Thank you!

propertiesFile.withInputStream { props.load(it) }
} else {
println "*! [ERROR] The file '${opts.properties}' doesn't exist."
rc = Math.max(rc, 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can directly assign a value to rc, it doesn't hurt to do it this way here.

Suggested change
rc = Math.max(rc, 1)
rc = 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants