Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DorianZimmer-LM
Copy link

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

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!

@@ -746,6 +746,9 @@ def parseInput(String[] cliArgs){
if (propertiesFile.exists()) {
props.packagingPropertiesFile = opts.properties
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