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

CLOUD-1817 better logging for multiple jars #38

Merged
merged 1 commit into from Jul 26, 2017

Conversation

bdecoste
Copy link

No description provided.

@@ -41,10 +46,11 @@ auto_detect_jar_file() {
ls *.jar | grep -v '^original-'
exit 0
fi

echo >&2 "ERROR: Neither \$JAVA_MAIN_CLASS nor \$JAVA_APP_JAR is set and ${nr_jars} found in ${dir} (1 expected)"
Copy link

Choose a reason for hiding this comment

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

When rendered, the error looks like

ERROR: Neither $JAVA_MAIN_CLASS nor $JAVA_APP_JAR is set and 2 found in /deployments (1 expected)

I think clearly the word "JARs" is missing. Can we change to "${nr_jars} JARs found in ${dir}"?

@Ladicek
Copy link

Ladicek commented Jul 26, 2017

Thanks :-)

@@ -3,6 +3,11 @@
# Fail on a single failed command
set -eo pipefail

if [ "${SCRIPT_DEBUG}" = "true" ] ; then
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to make sure this is documented in the image too, if it isn't already (i.e. image.yaml).

@rcernich rcernich merged commit 40d9953 into jboss-openshift:master Jul 26, 2017
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.

None yet

4 participants