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

[Java] java-android-clean-build - generating of keystores/truststores breaks the maven build #36

Open
rendner opened this issue Sep 22, 2018 · 0 comments

Comments

@rendner
Copy link

rendner commented Sep 22, 2018

The script docker/joynr-android/scripts/build/java-android-clean-build runs with set -e, which means exit immediately if a command exits with a non-zero status. Running this script again, without deleting the keystores/truststores, will generate the following error and abort the whole script:

keytool error: java.lang.Exception: Certificate not imported, alias <mykey> already exists

Therefore it isn't possible to do a clean maven build again with the current implementation.

Another problem with the keytool part in this script is, that the following lines:

require an additional -noprompt, otherwise the following output is printed to the console if the script runs again:

Existing entry alias mykey exists, overwrite? [no]:  keytool error: java.lang.NullPointerException
Existing entry alias 1 exists, overwrite? [no]:  keytool error: java.lang.NullPointerException

In this case the keytool expects input from the user, which is not possible if the docker container wasn't started in interactive mode.

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

No branches or pull requests

1 participant