Move jvm release pgp config to XDG_CONFIG_HOME.

Review Request #2292 - Created May 29, 2015 and submitted

Information
John Sirois
pants
jsirois/jvm_release/XDG_CONFIG_HOME
1610
4732d03...
Reviewers
pants-reviews
fkorotkov, lahosken, mateor, zundel

This lines up with the rest of pants global config.

NB: The actual XDG_CONFIG_HOME env var could not be used; the ivy
<properties file="..."/> element refused to expand
${env.XDG_CONFIG_HOME} even when <properties environment="env"/>
was declared on a prior line and -debug output showed the
${env.XDG_CONFIG_HOME} value being loaded correctly. In contrast the
${user.home} system property is expanded correctly and properties are
loaded from ~/.config/pants/release/jvm/pgp.properties as proven with
-debug output.

build-support/ivy/publish.ivysettings.xml | 4 ++--
src/python/pants/docs/release_jvm.md | 8 +++++---
2 files changed, 7 insertions(+), 5 deletions(-)

$ java -cp $HOME/.cache/pants/tools/jvm/ivy/bootstrap.jar:$HOME/.ivy2/pants/org.bouncycastle/bcprov-jdk14/jars/bcprov-jdk14-1.45.jar:$HOME/.ivy2/pants/org.bouncycastle/bcpg-jdk14/jars/bcpg-jdk14-1.45.jar \
  org.apache.ivy.Main \
    -settings build-support/ivy/publish.ivysettings.xml \
    -ivy build-support/ivy/ivy.xml \
    -debug | head -33
...
setting 'ivy.lib.dir' to '${ivy.project.dir}/lib'
loading properties: /home/jsirois/.config/pants/release/jvm/pgp.properties
setting 'pgp.password' to XXX
setting 'pgp.secring' to '/home/jsirois/.gnupg/secring.gpg'
setting 'pgp.keyid' to 'auto'

CI went green here:
https://travis-ci.org/pantsbuild/pants/builds/64629906

John Sirois
Mateo Rodriguez
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Eric Ayers
Ship It!
Loading...