Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move jvm release pgp config to XDG_CONFIG_HOME.
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. Testing Done: ```console $ 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 Bugs closed: 1610 Reviewed at https://rbcommons.com/s/twitter/r/2292/
- Loading branch information